[python-win32] Problem with "import gtk"
Cristina Bazzanella
cristinabazzanella at ed-elettronica.it
Thu Aug 31 08:44:23 EDT 2017
Hi,
I have a problem with the installation of gdk on my Windows (64 bit);
I've installed Python 2.7 and pygtk-all-in-one-2.22.5.
If I edit a script with just the instruction "import gtk" and then I run
it, I have this error:
File "C:\CRISTINA\Python\import_gtk.py", line 1, in <module>
import gtk
File "C:\CRISTINA\Python\gtk.py", line 3, in <module>
window = gtk.Window()
AttributeError: 'module' object has no attribute 'Window'
Instead, if I write "import pygtk", everything is ok.
Can someone help me please?
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20170831/8c142dfb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Firma email ED.jpg
Type: image/jpeg
Size: 49123 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-win32/attachments/20170831/8c142dfb/attachment-0001.jpg>
More information about the python-win32
mailing list