Added .cget() methods to all widgets and changed text_font to font for all widgets

This commit is contained in:
Tom Schimansky
2022-10-03 00:33:06 +02:00
parent 8b6f9a1d7e
commit bfc42c25ef
22 changed files with 725 additions and 246 deletions

View File

@ -227,6 +227,12 @@ class CTkToplevel(tkinter.Toplevel):
super().configure(*args, **kwargs)
def cget(self, attribute_name: str) -> any:
if attribute_name == "fg_color":
return self._fg_color
else:
return super().cget(attribute_name)
@staticmethod
def _enable_macos_dark_title_bar():
if sys.platform == "darwin" and not Settings.deactivate_macos_window_header_manipulation: # macOS