Re: [pygtk] pygtk-1.2 and threading... QA

2002-10-05 Thread James Henstridge
Andrew W. Schmeder wrote: Hi. I am writing a pygtk-1.2 app. I have lots of interaction with GnomeCanvas and lots of threading. For example, it is common to have a thread running which moves, creates or destroys a widget on the canvas. In the process of doing this I encountered a number of

[pygtk] Porting applications from pygtk to pygtk2

2002-10-05 Thread Martin Preishuber
Hi all, Since RedHat 8 includes pygtk2 and gnome-python2 per default now I get some requests why my eroaster application doesn't work any more ... it is a pygtk application ... So is there a good clean way to port pygtk to pygtk2 applications ? How much troubles will I have with changed widgets

Re: [pygtk] pygtk-1.2 and threading... QA

2002-10-05 Thread Steffen Ries
James Henstridge [EMAIL PROTECTED] writes: [...] Were you making use of the gtk.threads_enter() and gtk.threads_leave() calls to protect GTK calls outside of the main thread/signal handlers? If not, that would explain the problems you ran into. GTK is not completely thread safe, so in some

Re: [pygtk] pygtk-1.2 and threading... QA

2002-10-05 Thread Christian Reis
On Sat, Oct 05, 2002 at 08:28:40AM -0400, Steffen Ries wrote: class T(threading.Thread): def run(self): time.sleep(5) gtk.threads_enter() print acquired GDK lock win = gtk.Window() win.connect(destroy, lambda win: gtk.main_quit())

Re: [pygtk] Porting applications from pygtk to pygtk2

2002-10-05 Thread Christian Reis
On Sat, Oct 05, 2002 at 10:02:45AM +0200, Martin Preishuber wrote: Since RedHat 8 includes pygtk2 and gnome-python2 per default now I get some requests why my eroaster application doesn't work any more ... it is a pygtk application ... Blame RedHat for not having shipped the changes James and

Re: [pygtk] Is there a prebuilt runtime for windows?

2002-10-05 Thread Grzegorz Adam Hankiewicz
On Fri, Oct 04, 2002 at 12:05:38AM +0200, Grzegorz Adam Hankiewicz wrote: Thank you very much. BTW, some names have changed, and the win32 gtk page says you need libjpeg-6b, zlib, freetype2, tiff and libpng too, or is that only for gimp? I've tried now, and if you mindlessly follow the

[pygtk] select_region and set_position deprecation warnings

2002-10-05 Thread Don Allingham
In my port to pygtk2, I've encountered a problem with using select_region and set_position on a gtk.Entry. Both tasks cause a DeprecationWarning exception. The documentation doesn't indicate that there is a problem with the tasks. Is there a newer method for selecting text and positioning the