[pygtk] pygtk.glade import problem

David Ripton dripton at ripton.net
Fri Apr 30 22:57:51 WST 2010


On 2010.04.30 16:28:07 +0200, Krisztian Buza wrote:
> 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".

The canonical incantation is:

import pygtk
pygtk.require("2.0")

import gtk
import gtk.glade

-- 
David Ripton    dripton at ripton.net


More information about the pygtk mailing list