mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +03:00
Removed mutable default
This commit is contained in:
parent
ad8fdd763a
commit
ecd13b094b
8
stats.py
8
stats.py
@ -394,16 +394,18 @@ class StatsResults(tk.Toplevel):
|
|||||||
):
|
):
|
||||||
self.geometry(f"+{position.left}+{position.top}")
|
self.geometry(f"+{position.left}+{position.top}")
|
||||||
|
|
||||||
def addpage(self, parent, header: List[str] = [], align: Optional[str] = None) -> tk.Frame:
|
def addpage(self, parent, header: List[str] = None, align: Optional[str] = None) -> tk.Frame:
|
||||||
# TODO: mutable defaults is no beauno.
|
|
||||||
"""
|
"""
|
||||||
Add a page to the StatsResults screen.
|
Add a page to the StatsResults screen.
|
||||||
|
|
||||||
:param parent: The parent widget to put this under
|
:param parent: The parent widget to put this under
|
||||||
:param header: The headers for the table, defaults to []
|
:param header: The headers for the table, defaults to an empty list
|
||||||
:param align: Alignment to use for this page, defaults to None
|
:param align: Alignment to use for this page, defaults to None
|
||||||
:return: The Frame that was created
|
:return: The Frame that was created
|
||||||
"""
|
"""
|
||||||
|
if header is None:
|
||||||
|
header = []
|
||||||
|
|
||||||
page = nb.Frame(parent)
|
page = nb.Frame(parent)
|
||||||
page.grid(pady=10, sticky=tk.NSEW)
|
page.grid(pady=10, sticky=tk.NSEW)
|
||||||
page.columnconfigure(0, weight=1)
|
page.columnconfigure(0, weight=1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user