From 838ba42b9dfebea07b56526c20acdcd63e84a3e3 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Tue, 12 Apr 2022 00:10:00 +0100 Subject: [PATCH] Update app.py using __file__ to fetch path dir add default value for submix --- vmcompact/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vmcompact/app.py b/vmcompact/app.py index f77b89e..c6188c1 100644 --- a/vmcompact/app.py +++ b/vmcompact/app.py @@ -36,12 +36,16 @@ class App(tk.Tk): super().__init__() defaults = { "theme": { + "enabled": True, "mode": "light", }, "extends": { "extended": False, "extends_horizontal": True, }, + "submixes": { + "default": 0, + }, } self.configuration = defaults | self.configuration _base_vals.themes_enabled = self.configuration["theme"]["enabled"] @@ -66,7 +70,7 @@ class App(tk.Tk): self.drag_id = "" self.bind("", self.dragging) - self.iconbitmap(Path.cwd() / "vmcompact" / "img" / "cat.ico") + self.iconbitmap(Path(__file__).parent.resolve() / "img" / "cat.ico") @property def target(self):