Re: [pygtk] sys.excepthook and the gtk thread lock

2003-09-11 Thread James Henstridge
On 12/09/2003 8:42 AM, Tim Evans wrote: I have created a routine that displays exceptions in a gtk dialog box, which I place in sys.excepthook. I have run into a problem when using this routine with threading. The sys.excepthook function can be run from all sorts of places, sometimes the gtk

[pygtk] sys.excepthook and the gtk thread lock

2003-09-11 Thread Tim Evans
I have created a routine that displays exceptions in a gtk dialog box, which I place in sys.excepthook. I have run into a problem when using this routine with threading. The sys.excepthook function can be run from all sorts of places, sometimes the gtk lock will be held, other times it won't b

[pygtk] ANNOUNCE: Spanish Translation of the PyGTK Tutorial

2003-09-11 Thread Lorenzo Gil Sanchez
I am pleased to announce version 1.0 of the Spanish translation for the PyGTK Tutorial of John Finlay. You can find it in: http://moeraki.com/~lgs/ Any comments, suggestions or bug reports are greatly apreciated. Lorenzo Gil Sanchez ___ pygtk mailing

[pygtk] Re: A question about gtk.TreeView

2003-09-11 Thread Abel Daniel
"Jeff Cutsinger" <[EMAIL PROTECTED]> writes: [...drag & drop not working...] > class PlaylistModel(g.ListStore): > ...snip... > def drag_data_received(self, dest, selection_data): > rox.info(str(dest)) > rox.info(str(selection_data)) > return g.FALSE > def row_drop_possible

Re: [pygtk] PyGTK, Win32 and py2exe: no luck

2003-09-11 Thread Christian Reis
On Thu, Sep 04, 2003 at 08:40:37AM -0400, Jamey Cribbs wrote: > Charles Lepple wrote: > > >I am trying to bundle up a GTK+2 app on Win32 which uses PyGTK (from > >Cedric's pygtk installer). I have tried py2exe, cx_Freeze, and Gordon > >McMillan's Installer, but I can't seem to make a working sta

[pygtk] Re: Creating custom CellRenderer

2003-09-11 Thread Abel Daniel
Lorenzo Gil Sanchez <[EMAIL PROTECTED]> writes: > I think I know where is your problem. I just compared your code with > Johan code and look what he does in his on_render method: > > def on_render(...): > x_offset, y_offset, width, height = self.on_get_size(widget, > cell_area) > > So that's w

[pygtk] Re: Creating custom CellRenderer

2003-09-11 Thread Lorenzo Gil Sanchez
El jue, 11-09-2003 a las 07:42, Abel Daniel escribió: > Lorenzo Gil Sanchez writes: > > I think you should check if cell_area is None in your on_get_size() > > method because IIRC only the first time that is called it is None. I > > don't know why btw. > The problem is that it isn't called again, n