massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / ttkthemes / ttkthemes / themed_tk.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/ttkthemes/ttkthemes/themed_tk.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/ttkthemes/ttkthemes/themed_tk.pyi
new file mode 100644 (file)
index 0000000..3a2c9d7
--- /dev/null
@@ -0,0 +1,30 @@
+import tkinter
+from typing import Any
+
+from ._widget import ThemedWidget
+
+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 = ...,
+        # fonts argument does nothing
+        toplevel: bool | None = ...,
+        themebg: bool | None = ...,
+        background: bool | None = ...,  # old alias for themebg
+        gif_override: bool = ...,
+    ) -> None: ...
+    def set_theme(self, theme_name, toplevel: bool | None = ..., themebg: bool | None = ...) -> None: ...
+    # TODO: currently no good way to say "use the same big list of kwargs as parent class but also add these"
+    def config(self, kw: Any | None = ..., **kwargs): ...  # type: ignore
+    def cget(self, k): ...
+    def configure(self, kw: Any | None = ..., **kwargs): ...  # type: ignore
+    def __getitem__(self, k): ...
+    def __setitem__(self, k, v): ...