pygui some cleanup for dialog constructors to avoid passing duplicate parameters in most cases
This commit is contained in:
parent
185c6736b3
commit
1d620a0b17
42 changed files with 143 additions and 209 deletions
|
@ -11,8 +11,14 @@ if TYPE_CHECKING:
|
|||
|
||||
class Dialog(tk.Toplevel):
|
||||
def __init__(
|
||||
self, master: tk.Widget, app: "Application", title: str, modal: bool = True
|
||||
self,
|
||||
app: "Application",
|
||||
title: str,
|
||||
modal: bool = True,
|
||||
master: tk.BaseWidget = None,
|
||||
):
|
||||
if master is None:
|
||||
master = app
|
||||
super().__init__(master)
|
||||
self.withdraw()
|
||||
self.app = app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue