[pygtk] Can't run PyGTK more than once from embedded Python
Johan Dahlin
jdahlin at async.com.br
Tue Jan 10 00:45:34 WST 2006
> 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.
You can have different namespaces inside the same interpreter.
Running multiple interpreters inside the same process is not
officially supported in python. You're likely to run into many
complex, hard to fix problem which no one wants to help you solve.
The pygtk module is a trivial tiny wrapper to handle different
versions of the gtk bindings.
Johan
More information about the pygtk
mailing list