Fixed the option_menu not updating colors.

This commit is contained in:
Akash Bora 2022-09-30 15:07:46 +05:30 committed by GitHub
parent 9ef14447d9
commit 734b3d5c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,8 @@ class App(customtkinter.CTk):
self.widget_type.configure(text=self.current)
self.menu.configure(values=self.widgets[self.current])
self.menu.set(self.widgets[self.current][0])
self.update(self.menu.get())
#Function for changing current widget type with left button
def change_mode_left(self):
self.widgetlist.insert(0, self.widgetlist.pop())
@ -198,6 +199,7 @@ class App(customtkinter.CTk):
self.widget_type.configure(text=self.current)
self.menu.configure(values=self.widgets[self.current])
self.menu.set(self.widgets[self.current][0])
self.update(self.menu.get())
#Function for updating the contents and their colors
def update(self, value):