def __init__(self, parent):
""" Initialise main window. """
self.parent = parent
self.parent.title("PIEFACE Input GUI")
# Make all errors propagated to MainWindow.parent call custom exception routine
parent.report_callback_exception = self.report_callback_exception
self.filenames = []
self.nbookmain = ttk.Notebook(self.parent)
self.intab = ttk.Frame(self.nbookmain)
self.logtab = ttk.Frame(self.nbookmain)
self.nbookmain.add(self.intab, text='Input', sticky='nesw')
self.nbookmain.add(self.logtab, text='Output log', sticky='nesw', state=tk.NORMAL)
self.log = LogDisplay(self.logtab)
#self.log.__init__(self.logtab)
self.log.pack(expand=1, fill=tk.BOTH)
self.init_menu()
self.init_gui(self.intab)
self.nbookmain.pack(expand=1, fill=tk.BOTH)
self.intab.columnconfigure(0, weight=1)
self.intab.rowconfigure(0, weight=1)
self.nbookmain.select(self.logtab)
self.nbookmain.select(self.intab)
self.find_updates(verbose=False)
self.phases = {}
评论列表
文章目录