[pygtk] Can't run PyGTK more than once from embedded Python
Romain Behar
romainbehar at yahoo.com
Sun Jan 8 05:50:25 WST 2006
Many thanks!
Both
self.window.connect('delete-event', gtk.main_quit)
and
self.window.connect('destroy', gtk.main_quit)
work.
Now, the script quits, but running it again outputs
the following error:
Traceback (most recent call last):
File "<string>", line 7, in ?
File
"/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py",
line 38, in ?
import gdk # this is created by the _gtk import
ImportError: No module named gdk
Line 7 is the one with "import gtk" :
5: import pygtk
6: pygtk.require('2.0')
7: import gtk
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