Re: [pygtk] pygtk.glade import problem
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 Riptondrip...@ripton.net ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] pygtk.glade import problem
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 ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] pygtk.glade import problem
On 04/30/2010 04:28 PM, Krisztian Buza wrote: > 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, > Maybe you forgot to install python-glade2? -- Yann ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] pygtk.glade import problem
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, -- Krisztian Buza, Dipl.-Ing. Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Room C038, Samelsonplatz 1, D-31141 Hildesheim, Germany Tel. +49 5121 883 857 (direct) http://www.ismll.uni-hildesheim.de/index.html ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/