pygui: simplified a couple of the other widget constructors

This commit is contained in:
Blake Harnden 2020-05-15 14:46:35 -07:00
parent 0dcfcbf4ea
commit 4eaecd6a7b
4 changed files with 23 additions and 30 deletions

View file

@ -47,12 +47,11 @@ class Menubar(tk.Menu):
Core menubar
"""
def __init__(self, master: tk.Tk, app: "Application", **kwargs) -> None:
def __init__(self, app: "Application") -> None:
"""
Create a CoreMenubar instance
"""
super().__init__(master, **kwargs)
self.master.config(menu=self)
super().__init__(app)
self.app = app
self.core = app.core
self.canvas = app.canvas