Jay Graves wrote:

Your glade file makes use of GNOME widgets, but you have not initialised the GNOME libraries. You need to call gnome.init("progname", "version") after importing the libs you want (gnome.ui, bonobo.ui, etc).

Thank you very much for your help but I am still a bit confused.
if I import pygtk, gnome
pygtk.require('2.0')
import gtk, gtk.glade

then gnome.init() is not a valid method

If your system is set up to have the old pygtk as default, you will need to do the "import pygtk; pygtk.require('2.0')" bit first, and then import the "gnome" module. You will also need to make sure you have a 1.99.x version of gnome-python installed.

James.

--
Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/
WWW: http://www.daa.com.au/~james/ | Jan 22-25 Perth, Western Australia.


_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Reply via email to