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

Romain Behar romainbehar at yahoo.com
Sun Jan 8 07:15:41 WST 2006


> BTW, the difference is that the delete-event
> is emitted when the window close button is
> clicked and destroy is emitted when the
> internal window object is destroyed.  The
> difference is important when you want to 
> display a 'are you sure you want to close?'
> dialog box when the close button is clicked.

Thanks!

> Are you unloading modules after the script runs? 
> Extension modules (.pyd's on win32, .so's on
> most other systems) are often not designed to 
> be unloaded.  The same goes for normal python
> modules in many cases.

I don't know how to unload. BTW, I'm on the Linux
platform. I've been looking for some information on
module unloading, but couldn't find anything working.
Py_Finalize() always crashes the application.
Is there some instruction to unload gtk module when
quitting or doing some cleanup before importing it
again?
Maybe the only way is to delete the interpreter each
time a Python script is run.

 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