diff --git a/customtkinter/widgets/ctk_checkbox.py b/customtkinter/widgets/ctk_checkbox.py index 18f5883..38931c0 100644 --- a/customtkinter/widgets/ctk_checkbox.py +++ b/customtkinter/widgets/ctk_checkbox.py @@ -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