changed CTkCheckBox command to be only triggered by .toggle()

This commit is contained in:
Tom Schimansky 2022-09-17 12:41:45 +02:00
parent b350224f06
commit 67ab575b78

View File

@ -309,9 +309,6 @@ class CTkCheckBox(CTkBaseClass):
self.variable.set(self.onvalue)
self.variable_callback_blocked = False
if self.command is not None:
self.command()
def deselect(self, from_variable_callback=False):
self.check_state = False
self.draw()
@ -321,8 +318,5 @@ class CTkCheckBox(CTkBaseClass):
self.variable.set(self.offvalue)
self.variable_callback_blocked = False
if self.command is not None:
self.command()
def get(self):
return self.onvalue if self.check_state is True else self.offvalue