[ttkthemes] Update to 3.3.* (#15009)

This commit is contained in:
Semyon Moroz
2025-11-10 12:37:46 +04:00
committed by GitHub
parent e2bc120079
commit acff00e773
4 changed files with 18 additions and 14 deletions
@@ -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 -1
View File
@@ -1,2 +1,2 @@
version = "3.2.*"
version = "3.3.*"
upstream_repository = "https://github.com/RedFantom/ttkthemes"
+1 -1
View File
@@ -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]
+11 -12
View File
@@ -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