

def on_touch_down(self, touch):
    node = self.get_node_at_pos(touch.pos)
    if (not node):
        return
    if node.disabled:
        return
    if ((node.x - self.indent_start) <= touch.x < node.x):
        self.toggle_node(node)
    elif (node.x <= touch.x):
        self.select_node(node)
        node.dispatch('on_touch_down', touch)
    return True

dataset/ETHPy150Open kivy/kivy/kivy/uix/treeview.py TreeView.on_touch_down/original