now using event property setters.

This commit is contained in:
onyx-and-iris 2022-10-19 14:54:00 +01:00
parent 732368a65b
commit 3f306ddf62
2 changed files with 3 additions and 4 deletions

View File

@ -34,9 +34,8 @@ class App(tk.Tk):
super().__init__()
self._vmr = vmr
self._vmr.event.add("ldirty")
self._vmr.event.remove("mdirty")
self._vmr.event.remove("midi")
self._vmr.event.ldirty = True
self._vmr.event.remove(["mdirty", "midi"])
icon_path = Path(__file__).parent.resolve() / "img" / "cat.ico"
if icon_path.is_file():
self.iconbitmap(str(icon_path))

View File

@ -321,7 +321,7 @@ class Menus(tk.Menu):
self.after(1, self.enable_vban_menus)
return
self.menu_teardown(i)
self.vban.event.add("ldirty")
self.vban.event.ldirty = True
# destroy the current App frames
self.parent._destroy_top_level_frames()
_base_values.vban_connected = True