[pygtk] pygtk.glade import problem

Walter Leibbrandt walter at translate.org.za
Fri Apr 30 22:50:10 WST 2010


Op 30/04/2010 16:28, Krisztian Buza het geskryf:
> Dear Colleagues,
>
> I am new with Python. I have installed Python (version 2.6), PyGTK and
> Glade (http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/) under
> Windows.
>
> The
>
> "import pygtk"
>
> command works nice (i.e. without error message), but
>
> "import pygtk.glade"
>
> does not seem to work: I get this error message:
>
> "No module named glade".
>
> I tried to add the glade-directories to the path:
> C:\Program Files\Glade\lib\glade3\modules;C:\Program Files\Glade\bin;
>
> May be, I did not add the right glade directories?
>
> Could anyone help me?
>
> Thank you very much in advance,
>

The "pygtk" module is not really the module you're looking for; it's 
usually only used for pygtk.require(). The actual GTK stuff is in the 
"gtk" module, which puts Glade in "gtk.glade" and not "pygtk.glade".

Regards,
-- 
Walter Leibbrandt                  Software Developer
Recent blogs:
* Ubuntu PPA for Translate Toolkit and Virtaal
http://www.translate.org.za/blogs/walter/en/content/ubuntu-ppa-translate-toolkit-and-virtaal



More information about the pygtk mailing list