mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed bug in CTkBaseClass #354
This commit is contained in:
parent
ec8cecb575
commit
46b20d6605
@ -153,7 +153,7 @@ class CTkBaseClass(tkinter.Frame):
|
|||||||
|
|
||||||
# if fg_color of master is None, try to retrieve fg_color from master of master
|
# if fg_color of master is None, try to retrieve fg_color from master of master
|
||||||
elif hasattr(master_widget.master, "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
|
elif isinstance(master_widget, (ttk.Frame, ttk.LabelFrame, ttk.Notebook, ttk.Label)): # master is ttk widget
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user