[pygtk] user-controllable treeview column suppression
Thomas Mills Hinkle
Thomas_Hinkle at alumni.brown.edu
Thu Jul 22 10:26:04 WST 2004
On 21 Jul 2004 19:18:25 -0500
Doug Quale <quale1 at charter.net> wrote:
> I was imagining a simple system that required the application
> programmer to save the preferences and load them into the appropriate
> widgets by hand. This would be very tedious, but smarter mechanisms
> could be built on top of those low level facilities. Maybe this is
> aiming too low.
Well, here's some code that aims even lower -- I use the attached class in my applications as a way to remember where a user has positioned a window and the state of various widgets (panes, toggles). I haven't yet used it for scrollbars, but it should be do-able. I ran into some trouble with adjustable column-widths as I couldn't find a reliable way to get and set them while still allowing the user to reset them (I believe this has already been commented on). I haven't even thought about touching the parts of the TreeView that would require knowing something about the TreeModel.
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WidgetSaver.py
Type: text/x-python
Size: 4560 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20040721/51bff750/WidgetSaver-0001.py
More information about the pygtk
mailing list