mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
changed CTkCheckBox command to be only triggered by .toggle()
This commit is contained in:
parent
b350224f06
commit
67ab575b78
@ -309,9 +309,6 @@ class CTkCheckBox(CTkBaseClass):
|
|||||||
self.variable.set(self.onvalue)
|
self.variable.set(self.onvalue)
|
||||||
self.variable_callback_blocked = False
|
self.variable_callback_blocked = False
|
||||||
|
|
||||||
if self.command is not None:
|
|
||||||
self.command()
|
|
||||||
|
|
||||||
def deselect(self, from_variable_callback=False):
|
def deselect(self, from_variable_callback=False):
|
||||||
self.check_state = False
|
self.check_state = False
|
||||||
self.draw()
|
self.draw()
|
||||||
@ -321,8 +318,5 @@ class CTkCheckBox(CTkBaseClass):
|
|||||||
self.variable.set(self.offvalue)
|
self.variable.set(self.offvalue)
|
||||||
self.variable_callback_blocked = False
|
self.variable_callback_blocked = False
|
||||||
|
|
||||||
if self.command is not None:
|
|
||||||
self.command()
|
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
return self.onvalue if self.check_state is True else self.offvalue
|
return self.onvalue if self.check_state is True else self.offvalue
|
||||||
|
Loading…
Reference in New Issue
Block a user