From 0dcfcbf4ea1623617327e271a0a332716f6c3619 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Fri, 15 May 2020 11:43:54 -0700 Subject: [PATCH] pygui: simplified toolbar constructor, since there is no need for something more complicated --- daemon/core/gui/app.py | 2 +- daemon/core/gui/toolbar.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/core/gui/app.py b/daemon/core/gui/app.py index 90e5c36c..7ada71eb 100644 --- a/daemon/core/gui/app.py +++ b/daemon/core/gui/app.py @@ -104,7 +104,7 @@ class Application(ttk.Frame): self.rowconfigure(0, weight=1) self.columnconfigure(1, weight=1) self.grid(sticky="nsew") - self.toolbar = Toolbar(self, self) + self.toolbar = Toolbar(self) self.toolbar.grid(sticky="ns") self.right_frame = ttk.Frame(self) self.right_frame.columnconfigure(0, weight=1) diff --git a/daemon/core/gui/toolbar.py b/daemon/core/gui/toolbar.py index 46b70bee..2bf4e63c 100644 --- a/daemon/core/gui/toolbar.py +++ b/daemon/core/gui/toolbar.py @@ -42,11 +42,11 @@ class Toolbar(ttk.Frame): Core toolbar class """ - def __init__(self, master: tk.Widget, app: "Application", **kwargs) -> None: + def __init__(self, app: "Application") -> None: """ Create a CoreToolbar instance """ - super().__init__(master, **kwargs) + super().__init__(app) self.app = app # design buttons