From 46b20d6605e65bdc0e999d7b0f6f402fecda7c5f Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Fri, 5 Aug 2022 14:23:06 +0200 Subject: [PATCH] fixed bug in CTkBaseClass #354 --- customtkinter/widgets/widget_base_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customtkinter/widgets/widget_base_class.py b/customtkinter/widgets/widget_base_class.py index cfd59e7..303a7d7 100644 --- a/customtkinter/widgets/widget_base_class.py +++ b/customtkinter/widgets/widget_base_class.py @@ -153,7 +153,7 @@ class CTkBaseClass(tkinter.Frame): # if fg_color of master is None, try to retrieve fg_color from master of master elif hasattr(master_widget.master, "master"): - return self.detect_color_of_master(self.master.master) + return self.detect_color_of_master(master_widget.master) elif isinstance(master_widget, (ttk.Frame, ttk.LabelFrame, ttk.Notebook, ttk.Label)): # master is ttk widget try: