removed .config(), added kwargs managing and filtering, added kwargs exceptions, fixed cursor color for combobox

This commit is contained in:
Tom Schimansky
2022-10-03 23:50:59 +02:00
parent bfc42c25ef
commit 1374e04f04
23 changed files with 228 additions and 141 deletions

View File

@ -161,9 +161,9 @@ class CTkToplevel(tkinter.Toplevel):
self._iconify_called_after_windows_set_titlebar_color = True
super().iconify()
def resizable(self, *args, **kwargs):
super().resizable(*args, **kwargs)
self._last_resizable_args = (args, kwargs)
def resizable(self, width: bool = None, height: bool = None):
super().resizable(width, height)
self._last_resizable_args = ([], {"width": width, "height": height})
if sys.platform.startswith("win"):
if self._appearance_mode == 1:
@ -189,9 +189,6 @@ class CTkToplevel(tkinter.Toplevel):
self._current_height = height
super().maxsize(self._apply_window_scaling(self._max_width), self._apply_window_scaling(self._max_height))
def config(self, *args, **kwargs):
self.configure(*args, **kwargs)
def configure(self, *args, **kwargs):
bg_changed = False