types-ttkthemes 3.2.4.20250426__py3-none-any.whl → 3.2.4.20250927__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of types-ttkthemes might be problematic. Click here for more details.

@@ -1,5 +1,6 @@
1
1
  import tkinter
2
- from typing import Any
2
+ from collections.abc import Callable
3
+ from typing import Any, Literal
3
4
 
4
5
  from ._widget import ThemedWidget
5
6
 
@@ -31,21 +32,21 @@ class ThemedTk(tkinter.Tk, ThemedWidget):
31
32
  toplevel: bool | None = ...,
32
33
  theme: str | None = ...,
33
34
  background: str = ...,
34
- bd: tkinter._ScreenUnits = ...,
35
+ bd: float | str = ...,
35
36
  bg: str = ...,
36
- border: tkinter._ScreenUnits = ...,
37
- borderwidth: tkinter._ScreenUnits = ...,
37
+ border: float | str = ...,
38
+ borderwidth: float | str = ...,
38
39
  cursor: tkinter._Cursor = ...,
39
- height: tkinter._ScreenUnits = ...,
40
+ height: float | str = ...,
40
41
  highlightbackground: str = ...,
41
42
  highlightcolor: str = ...,
42
- highlightthickness: tkinter._ScreenUnits = ...,
43
+ highlightthickness: float | str = ...,
43
44
  menu: tkinter.Menu = ...,
44
- padx: tkinter._ScreenUnits = ...,
45
- pady: tkinter._ScreenUnits = ...,
46
- relief: tkinter._Relief = ...,
47
- takefocus: tkinter._TakeFocusValue = ...,
48
- width: tkinter._ScreenUnits = ...,
45
+ padx: float | str = ...,
46
+ pady: float | str = ...,
47
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
48
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
49
+ width: float | str = ...,
49
50
  ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
50
51
  def cget(self, k: str) -> Any: ...
51
52
  def configure( # type: ignore[override]
@@ -56,21 +57,21 @@ class ThemedTk(tkinter.Tk, ThemedWidget):
56
57
  toplevel: bool | None = ...,
57
58
  theme: str | None = ...,
58
59
  background: str = ...,
59
- bd: tkinter._ScreenUnits = ...,
60
+ bd: float | str = ...,
60
61
  bg: str = ...,
61
- border: tkinter._ScreenUnits = ...,
62
- borderwidth: tkinter._ScreenUnits = ...,
62
+ border: float | str = ...,
63
+ borderwidth: float | str = ...,
63
64
  cursor: tkinter._Cursor = ...,
64
- height: tkinter._ScreenUnits = ...,
65
+ height: float | str = ...,
65
66
  highlightbackground: str = ...,
66
67
  highlightcolor: str = ...,
67
- highlightthickness: tkinter._ScreenUnits = ...,
68
+ highlightthickness: float | str = ...,
68
69
  menu: tkinter.Menu = ...,
69
- padx: tkinter._ScreenUnits = ...,
70
- pady: tkinter._ScreenUnits = ...,
71
- relief: tkinter._Relief = ...,
72
- takefocus: tkinter._TakeFocusValue = ...,
73
- width: tkinter._ScreenUnits = ...,
70
+ padx: float | str = ...,
71
+ pady: float | str = ...,
72
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
73
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
74
+ width: float | str = ...,
74
75
  ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
75
76
  def __getitem__(self, k: str) -> Any: ...
76
77
  def __setitem__(self, k: str, v: Any) -> None: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: types-ttkthemes
3
- Version: 3.2.4.20250426
3
+ Version: 3.2.4.20250927
4
4
  Summary: Typing stubs for ttkthemes
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/python/typeshed
@@ -17,14 +17,9 @@ Dynamic: license-file
17
17
 
18
18
  ## Typing stubs for ttkthemes
19
19
 
20
- This is a [PEP 561](https://peps.python.org/pep-0561/)
21
- type stub package for the [`ttkthemes`](https://github.com/RedFantom/ttkthemes) package.
22
- It can be used by type-checking tools like
23
- [mypy](https://github.com/python/mypy/),
24
- [pyright](https://github.com/microsoft/pyright),
25
- [pytype](https://github.com/google/pytype/),
26
- [Pyre](https://pyre-check.org/),
27
- PyCharm, etc. to check code that uses `ttkthemes`. This version of
20
+ This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html)
21
+ for the [`ttkthemes`](https://github.com/RedFantom/ttkthemes) package. It can be used by type checkers
22
+ to check code that uses `ttkthemes`. This version of
28
23
  `types-ttkthemes` aims to provide accurate annotations for
29
24
  `ttkthemes==3.2.*`.
30
25
 
@@ -35,9 +30,9 @@ for more details. The source for this package can be found in the
35
30
  [`stubs/ttkthemes`](https://github.com/python/typeshed/tree/main/stubs/ttkthemes)
36
31
  directory.
37
32
 
38
- This package was tested with
39
- mypy 1.15.0,
40
- pyright 1.1.400,
41
- and pytype 2024.10.11.
33
+ This package was tested with the following type checkers:
34
+ * [mypy](https://github.com/python/mypy/) 1.18.1
35
+ * [pyright](https://github.com/microsoft/pyright) 1.1.405
36
+
42
37
  It was generated from typeshed commit
43
- [`ebf4d17c8d1ba2be348c51be39faec4d0303d8fa`](https://github.com/python/typeshed/commit/ebf4d17c8d1ba2be348c51be39faec4d0303d8fa).
38
+ [`ec184feeee93a545028833de6a1d62ffbb766f2c`](https://github.com/python/typeshed/commit/ec184feeee93a545028833de6a1d62ffbb766f2c).
@@ -5,9 +5,9 @@ ttkthemes-stubs/_utils.pyi,sha256=qYNGdJhcKmWJTfv8LVWKciPuKnUrUhY4hJ-Pwl9kENI,42
5
5
  ttkthemes-stubs/_widget.pyi,sha256=FjK0bwU6U4rz_oTdP94elZXkMv0jXGKp8OAhbb8mXsA,832
6
6
  ttkthemes-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  ttkthemes-stubs/themed_style.pyi,sha256=dFtTG4Vhf3B23yZW7cQ5ch9kyXNf4fHj2NM-kL6LTCE,492
8
- ttkthemes-stubs/themed_tk.pyi,sha256=Lxv6ITIrYeZKt8f4kD9BqQOPB53c5yQ7bZFK6l5LjKI,2817
9
- types_ttkthemes-3.2.4.20250426.dist-info/licenses/LICENSE,sha256=KV-FOMlK5cMEMwHPfP8chS2ranhqjd7kceBhtA1eyr4,12657
10
- types_ttkthemes-3.2.4.20250426.dist-info/METADATA,sha256=Vws9LnBxDbTGkKFflc-yfredd_LY8dafoo5HoUKCWr0,1833
11
- types_ttkthemes-3.2.4.20250426.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
12
- types_ttkthemes-3.2.4.20250426.dist-info/top_level.txt,sha256=c52mc6t_mlUFN04FzmIB71ILxskxUMRgaLTAf1fyVuU,16
13
- types_ttkthemes-3.2.4.20250426.dist-info/RECORD,,
8
+ ttkthemes-stubs/themed_tk.pyi,sha256=lIRldEoXYMEQiLWerlXogCN5ZQLlbCdYwtFxS9FsuZU,2879
9
+ types_ttkthemes-3.2.4.20250927.dist-info/licenses/LICENSE,sha256=KV-FOMlK5cMEMwHPfP8chS2ranhqjd7kceBhtA1eyr4,12657
10
+ types_ttkthemes-3.2.4.20250927.dist-info/METADATA,sha256=_UqTp5CKHkZTIkv2PY95eQAqz6vloly5UVlIL5DgxJU,1752
11
+ types_ttkthemes-3.2.4.20250927.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ types_ttkthemes-3.2.4.20250927.dist-info/top_level.txt,sha256=c52mc6t_mlUFN04FzmIB71ILxskxUMRgaLTAf1fyVuU,16
13
+ types_ttkthemes-3.2.4.20250927.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5