Horizontal scrolling won’t activate for ttk Treeview widget

OK, after some playing with minwidth and stretch, I think I have a better handle on it. The horizontal scrolling is triggered by the column-edge going out of the window’s bounds, not the content of the column. So you can use these parameters to force the column to be wider and thus force the scrolling.

The problem though is that you then lose the automatic adjustment of the column width to suit the width of the tree itself. You either have to force it very wide to accommodate any (assumed) likely folder depth, or you live with folder names getting truncated at the right boundary of the column.

So bottom line: it’s just a limitation of the widget itself. (At least with respect to its behavior on my platform, MS Windows.)

Leave a Comment