|
From: Joe E. <jen...@fl...> - 2005-07-27 20:50:52
|
Techentin, Robert W. wrote: > I placed a single-column ttk::treeview into a ttk::paned, and I wanted to > make the column resize to the width of the widget when the pane changed. > > I find that if I change the column width programattically, > > $tv column #0 -width 200 > > Then the widget size changes. But if I drag the pane sash, the column > remains the same size. I thought I could be clever and tried binding to the > widget's Configure event, but that created an auto-expanding column and > widget. > > Is there a way to make a treeview column expand when the widget size changes > from an external event? The ttk::treeview column autosizing is still terribly buggy -- it's better than before, but still not right. The widget *should* behave the way you describe by default; that it doesn't currently is a bug. This is on the "must fix" list for 0.7; if you can live with the current behavior for now I'd recommend not doing anything special in the application to work around it. If you can't, I'll try to think of something :-) Sorry for the inconvenience, --Joe English jen...@fl... |