mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 14:00:12 +08:00
[ttkthemes] Update to 3.3.* (#15009)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# Inconsistency because some params being between *args and **kwargs:
|
||||
ttkthemes.ThemedStyle.__init__
|
||||
ttkthemes.ThemedTk.__init__
|
||||
ttkthemes.themed_style.ThemedStyle.__init__
|
||||
ttkthemes.themed_tk.ThemedTk.__init__
|
||||
@@ -1,2 +1,2 @@
|
||||
version = "3.2.*"
|
||||
version = "3.3.*"
|
||||
upstream_repository = "https://github.com/RedFantom/ttkthemes"
|
||||
|
||||
@@ -5,7 +5,7 @@ from ._widget import ThemedWidget
|
||||
|
||||
class ThemedStyle(ttk.Style, ThemedWidget):
|
||||
def __init__(
|
||||
self, master: tkinter.Misc | None = ..., *, theme: str | None = None, gif_override: bool | None = False
|
||||
self, master: tkinter.Misc | None = None, theme: str | None = None, gif_override: bool | None = False
|
||||
) -> None: ...
|
||||
# theme_use() can't return None (differs from ttk.Style)
|
||||
def theme_use(self, theme_name: str | None = None) -> str: ... # type: ignore[override]
|
||||
|
||||
@@ -8,19 +8,18 @@ class ThemedTk(tkinter.Tk, ThemedWidget):
|
||||
def __init__(
|
||||
self,
|
||||
# non-keyword-only args copied from tkinter.Tk
|
||||
screenName: str | None = ...,
|
||||
baseName: str | None = ...,
|
||||
className: str = ...,
|
||||
useTk: bool = ...,
|
||||
sync: bool = ...,
|
||||
use: str | None = ...,
|
||||
*,
|
||||
theme: str | None = ...,
|
||||
screenName: str | None = None,
|
||||
baseName: str | None = None,
|
||||
className: str = "Tk",
|
||||
useTk: bool = True,
|
||||
sync: bool = False,
|
||||
use: str | None = None,
|
||||
theme: str | None = None,
|
||||
# fonts argument does nothing
|
||||
toplevel: bool | None = ...,
|
||||
themebg: bool | None = ...,
|
||||
background: bool | None = ..., # old alias for themebg
|
||||
gif_override: bool = ...,
|
||||
toplevel: bool | None = None,
|
||||
themebg: bool | None = None,
|
||||
background: bool | None = None, # old alias for themebg
|
||||
gif_override: bool = False,
|
||||
) -> None: ...
|
||||
def set_theme(self, theme_name: str, toplevel: bool | None = None, themebg: bool | None = None) -> None: ...
|
||||
# Keep this in sync with tkinter.Tk
|
||||
|
||||
Reference in New Issue
Block a user