Re: [pygtk] user-controllable treeview column suppression

2004-07-22 Thread Gustavo J. A. M. Carneiro
A Qui, 2004-07-22 às 01:49, Christian Robottom Reis escreveu: On Wed, Jul 21, 2004 at 07:18:25PM -0500, Doug Quale wrote: You'd also need to specify a way to discover, store (and restore on startup/widget construction) these preferences per-user and per-widget -- or is that up to the

Re: [pygtk] user-controllable treeview column suppression

2004-07-22 Thread Christian Robottom Reis
On Thu, Jul 22, 2004 at 10:26:26AM +0100, Gustavo J. A. M. Carneiro wrote: I'd shoot for something transparent, that you simply threw a switch in the application and ~user/.appname/state was generated and kept up to date automatically for you. That'd be a killer feature for app-writers.

Re: [pygtk] user-controllable treeview column suppression

2004-07-22 Thread Steve McClure
On Thu, 2004-07-22 at 08:41, Christian Robottom Reis wrote: On Thu, Jul 22, 2004 at 10:26:26AM +0100, Gustavo J. A. M. Carneiro wrote: I'd shoot for something transparent, that you simply threw a switch in the application and ~user/.appname/state was generated and kept up to date

Re: [pygtk] user-controllable treeview column suppression

2004-07-22 Thread Doug Quale
Gustavo J. A. M. Carneiro [EMAIL PROTECTED] writes: BonoboUI stores toolbar state in GConf. But the programmer has to specify the GConf key, so it isn't 100% automatic (thankfully). Isn't the gconf key set up automatically when you call gnome.program_init()? I don't know, but it seemed to

Re: [pygtk] user-controllable treeview column suppression

2004-07-22 Thread Gustavo J. A. M. Carneiro
A Qui, 2004-07-22 às 15:09, Doug Quale escreveu: Gustavo J. A. M. Carneiro [EMAIL PROTECTED] writes: BonoboUI stores toolbar state in GConf. But the programmer has to specify the GConf key, so it isn't 100% automatic (thankfully). Isn't the gconf key set up automatically when you call

Re: [pygtk] user-controllable treeview column suppression

2004-07-22 Thread Doug Quale
Gustavo J. A. M. Carneiro [EMAIL PROTECTED] writes: A Qui, 2004-07-22 s 15:09, Doug Quale escreveu: Gustavo J. A. M. Carneiro [EMAIL PROTECTED] writes: BonoboUI stores toolbar state in GConf. But the programmer has to specify the GConf key, so it isn't 100% automatic (thankfully).

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Christian Robottom Reis
On Tue, Jul 20, 2004 at 01:47:11PM -0500, Doug Quale wrote: Christian Robottom Reis [EMAIL PROTECTED] 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

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Christian Robottom Reis
On Tue, Jul 20, 2004 at 09:41:27AM -0700, John Finlay wrote: Skip Montanaro wrote: Is it possible to give users the ability to suppress display of certain columns of a treeview? Perhaps I should be using a table widget instead. (Treeview widgets seem way too complex for fairly simple use,

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Doug Quale
Christian Robottom Reis [EMAIL PROTECTED] writes: On Tue, Jul 20, 2004 at 01:47:11PM -0500, Doug Quale wrote: 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

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Danny Milosavljevic
Am Mit, den 21.07.2004 um 16:41 Uhr -0500 schrieb Doug Quale: [...] Since my column sizing concerns seem to be a non-issue, now I think getting the sort info is hard. It might require connecting to column Sort Info ? By Code ? model.get_sort_column_id() returns: (column_id, sort_order) [for

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread John Finlay
Danny Milosavljevic wrote: Am Mit, den 21.07.2004 um 16:41 Uhr -0500 schrieb Doug Quale: [...] Since my column sizing concerns seem to be a non-issue, now I think getting the sort info is hard. It might require connecting to column Sort Info ? By Code ? model.get_sort_column_id() returns:

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Christian Robottom Reis
On Wed, Jul 21, 2004 at 04:41:23PM -0500, Doug Quale wrote: 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. Pygtk provides a great opportunity to

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Doug Quale
Danny Milosavljevic [EMAIL PROTECTED] writes: Am Mit, den 21.07.2004 um 16:41 Uhr -0500 schrieb Doug Quale: [...] Since my column sizing concerns seem to be a non-issue, now I think getting the sort info is hard. It might require connecting to column Sort Info ? By Code ?

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Doug Quale
Christian Robottom Reis [EMAIL PROTECTED] writes: On Wed, Jul 21, 2004 at 04:41:23PM -0500, Doug Quale wrote: 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

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Christian Robottom Reis
On Wed, Jul 21, 2004 at 07:12:20PM -0500, Doug Quale wrote: Actually I'd be happy with a smaller goal: If the default sorts were guarranteed to be stable (rows with equal values of the sort column remain in the input order) this would allow you to select sort columns in reverse order and get

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Christian Robottom Reis
On Wed, Jul 21, 2004 at 07:18:25PM -0500, Doug Quale wrote: You'd also need to specify a way to discover, store (and restore on startup/widget construction) these preferences per-user and per-widget -- or is that up to the application programmer? I was imagining a simple system that

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Thomas Mills Hinkle
On 21 Jul 2004 19:18:25 -0500 Doug Quale [EMAIL PROTECTED] 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

Re: [pygtk] user-controllable treeview column suppression

2004-07-21 Thread Thomas Mills Hinkle
On 21 Jul 2004 19:18:25 -0500 Doug Quale [EMAIL PROTECTED] 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

[pygtk] user-controllable treeview column suppression

2004-07-20 Thread Skip Montanaro
Is it possible to give users the ability to suppress display of certain columns of a treeview? Perhaps I should be using a table widget instead. (Treeview widgets seem way too complex for fairly simple use, which I suspect is what they are used for 90% of the time.) Thx, -- Skip Montanaro Got

Re: [pygtk] user-controllable treeview column suppression

2004-07-20 Thread John Finlay
Skip Montanaro wrote: Is it possible to give users the ability to suppress display of certain columns of a treeview? Perhaps I should be using a table widget instead. (Treeview widgets seem way too complex for fairly simple use, which I suspect is what they are used for 90% of the time.) Thx,

Re: [pygtk] user-controllable treeview column suppression

2004-07-20 Thread Skip Montanaro
Is it possible to give users the ability to suppress display of certain columns of a treeview? John Should be able to using gtk.TreeViewColumn.set_visible(): John http://www.pygtk.org/pygtk2reference/class-gtktreeviewcolumn.html#method-gtktreeviewcolumn--set-visible Thanks.

Re: [pygtk] user-controllable treeview column suppression

2004-07-20 Thread Steve McClure
On Tue, 2004-07-20 at 13:37, Skip Montanaro wrote: Is it possible to give users the ability to suppress display of certain columns of a treeview? John Should be able to using gtk.TreeViewColumn.set_visible(): John

Re: [pygtk] user-controllable treeview column suppression

2004-07-20 Thread Christian Robottom Reis
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

Re: [pygtk] user-controllable treeview column suppression

2004-07-20 Thread Skip Montanaro
Steve Kiwi has a nice way of doing it. Its CList object has a popup Steve menu on the right click where the user can decide which columns Steve to display. Thanks for the pointer. I installed it but importing Kiwi failed with an ImportError (no module named libglade). We import

Re: [pygtk] user-controllable treeview column suppression

2004-07-20 Thread Christian Robottom Reis
On Tue, Jul 20, 2004 at 01:20:38PM -0500, Skip Montanaro wrote: Steve Kiwi has a nice way of doing it. Its CList object has a popup Steve menu on the right click where the user can decide which columns Steve to display. Thanks for the pointer. I installed it but importing Kiwi

Re: [pygtk] user-controllable treeview column suppression

2004-07-20 Thread Doug Quale
Christian Robottom Reis [EMAIL PROTECTED] 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

Re: [pygtk] user-controllable treeview column suppression

2004-07-20 Thread Steve McClure
On Tue, 2004-07-20 at 14:47, Doug Quale wrote: Christian Robottom Reis [EMAIL PROTECTED] 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