Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
303 B
2
Indexable
Never
def on_tree_click(self, event):
    x, y = event.x, event.y
    tree_bbox = self.tree.bbox('@0,0')  # Get the bounding box of the first item in the treeview
    if tree_bbox and x < tree_bbox[0]:  # Check if click is to the right of the treeview
        self.tree.selection_remove(self.tree.selection())
Leave a Comment