mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fix switch #801
This commit is contained in:
parent
f11d727879
commit
a49dde63b3
@ -119,7 +119,7 @@ class CTkSwitch(CTkBaseClass):
|
|||||||
|
|
||||||
if self._variable is not None and self._variable != "":
|
if self._variable is not None and self._variable != "":
|
||||||
self._variable_callback_name = self._variable.trace_add("write", self._variable_callback)
|
self._variable_callback_name = self._variable.trace_add("write", self._variable_callback)
|
||||||
self.c_heck_state = True if self._variable.get() == self._onvalue else False
|
self._check_state = True if self._variable.get() == self._onvalue else False
|
||||||
|
|
||||||
self._create_bindings()
|
self._create_bindings()
|
||||||
self._set_cursor()
|
self._set_cursor()
|
||||||
|
Loading…
Reference in New Issue
Block a user