[pygtk] user-controllable treeview column suppression
Christian Robottom Reis
kiko at async.com.br
Thu Jul 22 01:26:35 WST 2004
On Tue, Jul 20, 2004 at 01:47:11PM -0500, Doug Quale wrote:
> Christian Robottom Reis <kiko at async.com.br> writes:
> > On Tue, Jul 20, 2004 at 01:57:54PM -0400, Steve McClure wrote:
> > > Kiwi has a nice way of doing it. Its CList object has a popup menu on
> > > the right click where the user can decide which columns to display.
> > If only we could make those changes transparently persistent. We need
> > "user-cookies" for PyGTK apps. :-)
> Of course this is an issue that really needs better support at the
> gtk+ level. Tree views actually have quite a bit of state that we
> would like to persist: expanded/collapsed node state, visible columns,
> column order, sorting order and column widths. I think this will
> require gtk+ API additions because I don't think there's any way to
> reset column widths to saved values.
Doesn't Treeview have the equivalent of CList's set_column_width? I'm
seeing here a TreeViewColumn.set_fixed_width() method that seems to do
what would be necessary. And there's set_min_width, which is perhaps
I think all the API is in-place; what seems to be necessary is a
cross-platform (cross-language?) mechanism to persist user preferences.
Maybe PyGTK should just go ahead and grow one <wink>.
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
More information about the pygtk