Skip to content

Commit 16ab6f2

Browse files
Update formatix.py
1 parent 7cfc190 commit 16ab6f2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

formatix.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,12 @@ def _make_tree(self, parent, title, col, is_result=False):
10221022
tree.column("name", width=150, minwidth=100, stretch=True, anchor="w")
10231023
tree.column("res", width=95, minwidth=95, stretch=False, anchor="center")
10241024
tree.column("size", width=105, minwidth=105, stretch=False, anchor="center")
1025-
tree.bind("<Button-1>", lambda e: "break" if tree.identify_region(e.x, e.y) == "separator" and tree.identify_column(e.x) == "#1" else None)
1025+
def _block_status_resize(e, t=tree):
1026+
if t.identify_region(e.x, e.y) == "separator":
1027+
col = t.identify_column(e.x)
1028+
if col in ("#1",): # только правая граница status
1029+
return "break"
1030+
tree.bind("<Button-1>", _block_status_resize)
10261031
else:
10271032
cols = ("name", "res", "size")
10281033
tree = ttk.Treeview(inner, columns=cols, show="headings", style="Treeview")

0 commit comments

Comments
 (0)