This commit is contained in:
yumoqing 2023-12-17 12:34:48 +08:00
parent 9e2b5db1a6
commit 977161fae3

View File

@ -165,7 +165,7 @@ class TreeNode(BoxLayout):
if cf: if cf:
self.content = HBox(size_hint_y=None, self.content = HBox(size_hint_y=None,
height=self.treeObj.rowHeight) height=self.treeObj.rowHeight)
self.checkbox_w = CheckBox(active=self.data.get(cf, False) self.checkbox_w = CheckBox(active=self.data.get(cf, False))
self.content.add_widget(self.checkbox_w) self.content.add_widget(self.checkbox_w)
self.content.add_widget(x) self.content.add_widget(x)
self.checkbox_w.bind(active=self.on_checkbox_active) self.checkbox_w.bind(active=self.on_checkbox_active)