[pygtk] Can't run PyGTK more than once from embedded Python

Romain Behar romainbehar at yahoo.com
Tue Jan 10 00:34:01 WST 2006


> Romain Behar wrote:
> > I've finally found the bug: to run PyGTK scripts
> > properly, one has to create only one Python
> > interpreter and use it to launch all scripts. My
> > application was creating a new interpreter each
> > time it ran a new script.
> 
> My suggestion is to use a single interpreter.  I
> suspect the issue is that the pygtk extension
> modules are initialized multiple times and
> causing the problem.
> 
> John

Unfortunately, it's not possible to have a single
interpreter. For example, more than one document can
be opened and each of them can have an interpreter
instance. Every other Python library tested works
properly with multiple interpreters. 'pygtk' module
doesn't complain, only 'gtk' one does. If the issue
comes from the gtk extension modules being initialized
multiple times, I'll add a bug to the tracker.

 Cheers,

  Romain



		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



More information about the pygtk mailing list