|
From: Joe E. <jen...@fl...> - 2005-03-16 22:01:56
|
Bryan Oakley wrote: > My first attempt at creating a treeview results in a columns that stop > short of filling the entire width of the widget. Is there a way to > configure a particular column to stretch to fill the width, or do I have > to do the math myself and set each column individually? I really don't like the current column-sizing behavior, but am not entirely sure how to make it do the Right Thing. I've been using a utility routine that takes a treeview widget, a dictionary of weights, and an overall width, and configures each display column to have width proportional to its weight. This has worked OK for the use cases I've encountered, but still doesn't feel quite right. Another option is to use -minsize, -weight, and (possibly) -uniform options as in [grid columnconfigure]. When I get a chance I'll check in some Tcl code implementing different sizing behaviors for people to play with; once we figure out what the right approach is we can bake it in. --Joe English jen...@fl... |