def __init__(self, master, app_main, **kwargs):
super().__init__(master, **kwargs)
# style = Style()
# if we do this we also need to hide the #0 column because it adds indention for possible children
# style.configure("Treeview.Heading", padding=(10, 0))
# self.protocol('WM_DELETE_WINDOW', self.onClose)
# self.nb_tabs = Notebook(self)
# self.create_iprice_tab()
self.prices_editor = PricesEditor(self)
self.currency_editor = CurrencyEditor(self)
self.settings_editor = SettingsEditor(self, app_main)
# self.add(self.frm_iprices_tab, text='Item Prices', sticky='nsew')
self.add(self.settings_editor, text='General', sticky='nsew')
self.add(self.prices_editor, text='Prices', sticky='nsew')
self.add(self.currency_editor, text='Currency', sticky='nsew')
self.bind('<<NotebookTabChanged>>', self.onTabChange)
self.settings_editor_id, self.prices_tab_id, self.currency_tab_id = self.tabs()
评论列表
文章目录