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
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/