pygui: simplified toolbar constructor, since there is no need for something more complicated

This commit is contained in:
Blake Harnden 2020-05-15 11:43:54 -07:00
parent ee5d5b9864
commit 0dcfcbf4ea
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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