mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
checkbox.check_state initialization fixed
This commit is contained in:
parent
0f7cb22b1b
commit
6e36ec818e
@ -63,7 +63,10 @@ class CTkCheckBox(CTkBaseClass):
|
||||
self.function = command
|
||||
self.state = state
|
||||
self.hover = hover
|
||||
self.check_state = (variable.get() == onvalue)
|
||||
if variable == None:
|
||||
self.check_state = False
|
||||
else:
|
||||
self.check_state = (variable.get() == onvalue)
|
||||
self.onvalue = onvalue
|
||||
self.offvalue = offvalue
|
||||
self.variable: tkinter.Variable = variable
|
||||
|
Loading…
Reference in New Issue
Block a user