On 22 Jun 2001 09:40:17 -0700, Frank Miles wrote:
[snip]
> I have a _gtk.pyd in c:\windows\system.  It still only imports on the 2nd try.
> If that was the only thing wrong, it would be easy to live with, simply use
> a try: import .. , except: import ..  There's something more seriously wrong,
> though.  When I try the simple script (based on a tutorial):
> 
>       #!/usr/bin/env python
>       try:
>               from gtk import *
>       except:
>               from gtk import *
>       window = GtkWindow()
>       window.connect('destroy', mainquit)
>       window.show_all()
>       mainloop()
> 
> the following error message is returned:
>       NameError: There is no variable named 'GtkWindow'


this one bited me too when trying to install python-gtk on win32. it
does *not* import correctly, you get an empty module. i don't know if
this is a python problem on win32 or something else... you only need to
copy the .pyd files to your python installation Lib directory and you're
done.

> It would appear that gtk is still not fully accessible.  This is with
> Python2.0, and gtk from the gimp20001226.exe installer.  Similarly, libglade
> appears to import (again, on the second try), but when I try to load a simple
> glade file:
>       self.widgets = libglade.GladeXML('simple.glade')
> ...python returns an attribute error regarding GladeXML.  I tried substituting
> the full path name for 'simple.glade' but this did nothing.  {This same simple
> app and glade file work fine in Linux}.

where did you get _libglade.pyd? it is not distributed with gimp nor
python-gtk port...

hope this helps,

federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research & Technology              [EMAIL PROTECTED]
Debian GNU/Linux Developer & Italian Press Contact        [EMAIL PROTECTED]
  Qu'est ce que la folie? Juste un sentiment de libert� si
   fort qu'on en oublie ce qui nous rattache au monde... -- J. de Loctra

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to