def onImportSingleBtnClicked(self, event):
if not self.currentSelectedExperiment or not self.currentSelectedContainer:
return
go = self.glade.get_object
folderChooser = go("export_everything_select_folder")
folderChooser.set_title("Select the directory where your tree starts from")
folderChooser.set_transient_for(self.window)
response = folderChooser.run()
if response == 0:
source_path = folderChooser.get_filename()
if not source_path:
msgdialog = Gtk.MessageDialog(self.window, 1, Gtk.MessageType.INFO, Gtk.ButtonsType.OK, "Please select the source folder and try again")
msgdialog.run()
msgdialog.destroy()
else:
self.importSingleContainer(source_path)
msgdialog = Gtk.MessageDialog(self.window, 1, Gtk.MessageType.INFO, Gtk.ButtonsType.OK, "Experiment imported")
msgdialog.run()
msgdialog.destroy()
__main__.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录