Untitled
unknown
plain_text
a year ago
303 B
6
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