Re: [pygtk] pygtk.glade import problem

2010-04-30 Thread Yann Leboulanger
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/


Re: [pygtk] pygtk.glade import problem

2010-04-30 Thread David Ripton
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/