override iconbitmap #1106

This commit is contained in:
Tom Schimansky 2023-01-24 12:45:29 +01:00
parent 9fcd963fd2
commit 9e2584c958

View File

@ -220,6 +220,10 @@ class CTk(tkinter.Tk, CTkAppearanceModeBaseClass, CTkScalingBaseClass):
self._iconbitmap_method_called = True self._iconbitmap_method_called = True
super().wm_iconbitmap(bitmap, default) super().wm_iconbitmap(bitmap, default)
def iconbitmap(self, bitmap=None, default=None):
self._iconbitmap_method_called = True
super().wm_iconbitmap(bitmap, default)
def _windows_set_titlebar_icon(self): def _windows_set_titlebar_icon(self):
try: try:
# if not the user already called iconbitmap method, set icon # if not the user already called iconbitmap method, set icon