We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47de607 commit 7c4ea70Copy full SHA for 7c4ea70
theme.py
@@ -162,6 +162,10 @@ def initialize(self):
162
with open('themes/transparent.json') as f:
163
self.style.theme_create('transparent', self.default_ttk_theme, json.load(f))
164
165
+ @deprecated('Theme colors are now applied automatically, even after initialization')
166
+ def register(self, widget: tk.Widget | tk.BitmapImage) -> None: # noqa: CCR001, C901
167
+ assert isinstance(widget, (tk.BitmapImage, tk.Widget)), widget
168
+
169
def register_alternate(self, pair: tuple, gridopts: dict) -> None:
170
self.widgets_pair.append((pair, gridopts))
171
0 commit comments