diff --git a/vmcompact/app.py b/vmcompact/app.py index 4db27b7..d82d640 100644 --- a/vmcompact/app.py +++ b/vmcompact/app.py @@ -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)) diff --git a/vmcompact/menu.py b/vmcompact/menu.py index 72e0887..5e72dd4 100644 --- a/vmcompact/menu.py +++ b/vmcompact/menu.py @@ -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