pygui updates to properly dynamically update the observer widgets menu as changes are made
This commit is contained in:
parent
f521fe4141
commit
039cf2a3b9
2 changed files with 22 additions and 12 deletions
|
@ -104,6 +104,7 @@ class ObserverDialog(Dialog):
|
|||
observer = Observer(name, cmd)
|
||||
self.app.core.custom_observers[name] = observer
|
||||
self.observers.insert(tk.END, name)
|
||||
self.app.menubar.draw_custom_observers()
|
||||
|
||||
def click_save(self):
|
||||
name = self.name.get()
|
||||
|
@ -129,6 +130,7 @@ class ObserverDialog(Dialog):
|
|||
self.observers.selection_clear(0, tk.END)
|
||||
self.save_button.config(state=tk.DISABLED)
|
||||
self.delete_button.config(state=tk.DISABLED)
|
||||
self.app.menubar.draw_custom_observers()
|
||||
|
||||
def handle_observer_change(self, event: tk.Event):
|
||||
selection = self.observers.curselection()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue