Re: [pygtk] Custom Tree Model and row_* Signals

2004-01-07 Thread Jeffrey C. Ollie
On Wed, 2004-01-07 at 22:13, Jeff Bowden wrote: > Doug Quale wrote: > > > >There is only one interesting thing about this code. It uses > >self.on_get_path() to get the path, but you must use self.get_iter() > >to obtain a gtk.TreeIter. If instead you try self.on_get_iter() you > >will find it wo

Re: [pygtk] Custom Tree Model and row_* Signals

2004-01-07 Thread Jeff Bowden
Doug Quale wrote: "Jeffrey C. Ollie" <[EMAIL PROTECTED]> writes: When run, you get the following output: Traceback (most recent call last): File "test.py", line 22, in add self.row_inserted(self.on_get_path(item), item) TypeError: iter should be a GtkTreeIter The message points to th

[pygtk] Re: gnome-python and gnome-session

2004-01-07 Thread James Henstridge
On 27/12/2003 8:08 AM, Martin Grimme wrote: Hi, gnome-python does not fully support session management, e.g. methods like gnome_client_set_restart_command() are missing. There has been a patch for the missing functions around since the days of 1.99.11 and Redhat and (now also) Debian patch their

Re: [pygtk] Custom Tree Model and row_* Signals

2004-01-07 Thread Jeffrey C. Ollie
On Wed, 2004-01-07 at 20:18, Doug Quale wrote: > > It uses > self.on_get_path() to get the path, but you must use self.get_iter() > to obtain a gtk.TreeIter. Awesome! Thanks, that's exactly what I needed! Jeff ___ pygtk mailing list [EMAIL PROTECTED

Re: [pygtk] Custom Tree Model and row_* Signals

2004-01-07 Thread Doug Quale
"Jeffrey C. Ollie" <[EMAIL PROTECTED]> writes: > When run, you get the following output: > > Traceback (most recent call last): > File "test.py", line 22, in add > self.row_inserted(self.on_get_path(item), item) > TypeError: iter should be a GtkTreeIter The message points to the problem --

Re: [pygtk] PyGTK-demo, like gtk-demo

2004-01-07 Thread Xavier Ordoquy
On Tue, 2004-01-06 at 13:43, Adriano Del Vigna de Almeida wrote: > Ok, I found what I where looking for... For those who are interested: > > http://howto.gp.mines.edu/local-apps/pygtk2-1.99.14/examples/pygtk-demo/ The pygtk-demo is given within the pygtk tarball available on ftp.gnome.org Regard

[pygtk] Custom Tree Model and row_* Signals

2004-01-07 Thread Jeffrey C. Ollie
Hi, I'm working on implementing a custom tree model. I'm having a problem with dynamically adding items to the tree model, and having the display updated. I've attached a short example program that demonstrates my problem. When run, you get the following output: Traceback (most recent call las

[pygtk] Plea for a patch to be applied

2004-01-07 Thread Don Allingham
I would appreciate it if the attached patch could be applied to CVS. This is to resolve bugzilla report #125172, which involves the TreeSortModel. The bug was incorrectly marked as a duplicate of another bug, yet the patch for the other bug does not fix the problem, as can be seen by the testcase s

[pygtk] Re: how to intercepting toplevel widget destroy event to hide rather than destroy

2004-01-07 Thread Luc Lefebvre
Malcolm Tredinnick wrote: > The general solution is here: > > http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.006.htp > > Cheers, > Malcolm > Interestingly this works for my "About" dialog, I trap the "on_dialog1_delete_event", hide the widget, and return gtk.TRUE. If I try t

[pygtk] simple icon view control [was: thread support on windows ?]

2004-01-07 Thread Ionutz Borcoman
Hi, Here is my simple icon viewer widget. It uses a thread to display the icons. I would appreciate any comments/suggestions for possible improvements. For example, one thing I'm not very comfortable with is that the IconViewer is derived from a HBox. How can I derive it directly from gtk.Wid