mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
Fixed variable configuring for CTkOptionMennu
This commit is contained in:
@ -226,7 +226,8 @@ class CTkOptionMenu(CTkBaseClass):
|
||||
|
||||
if self.variable is not None and self.variable != "":
|
||||
self.variable_callback_name = self.variable.trace_add("write", self.variable_callback)
|
||||
self.set(self.variable.get(), block_set_variable=True)
|
||||
self.current_value = self.variable.get()
|
||||
self.text_label.configure(text=self.current_value)
|
||||
else:
|
||||
self.variable = None
|
||||
|
||||
|
Reference in New Issue
Block a user