Update app.py

using __file__ to fetch path dir

add default value for submix
This commit is contained in:
onyx-and-iris 2022-04-12 00:10:00 +01:00
parent 47d7014592
commit 838ba42b9d

View File

@ -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("<Configure>", self.dragging)
self.iconbitmap(Path.cwd() / "vmcompact" / "img" / "cat.ico")
self.iconbitmap(Path(__file__).parent.resolve() / "img" / "cat.ico")
@property
def target(self):