Untitled

Anonymous
plain_text
04/25/2024 12:35 PM
404 B
19
Indexable
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())
Editor is loading...
Leave a Comment