I am new to pygtk, but I have been writing in python for a few months. I cannot seem to get pygtk to do the simplest thing. When I enter
>>> import gtk That works, but when I then enter
>>> window = gtk.Window(gtk.WINDOW_TOPLEVEL)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'Window'
I get the error message shown. I guess I don't have something loaded, but what? I am running Mandrake 8.2 and when I search the installed rpms for "gtk", I get the following:
$ rpm -qa | grep gtk
libgtk+1.2-1.2.10-25mdk
gtkdialogs-1.2-2mdk
gtkhtml-1.0.1-4mdk
libgtkmm1.2-devel-1.2.8-2mdk
libgtkhtml20-1.0.1-4mdk
pygtk-0.6.9-1mdk
libgtkmm1.2-1.2.8-2mdk
pygtk-libglade-0.6.9-1mdk
pygtk-glarea-0.6.9-1mdk
ruby-gtk-0.25-2mdk
gocr-gtk-0.3.5-1mdk
gtk+mdk-0.1.6-11mdk
libgtk+mdk0.1_6-0.1.6-11mdk
libgtkxmhtml1-1.4.1.4-5mdk
libgtk+1.2-devel-1.2.10-25mdk
libgtkglarea5-1.2.3-2mdk
pygtk-devel-0.6.9-1mdk


I have upgraded the python that came with the Mandrake 8.2 to Python 2.2.2. Could that be the problem? How do I go about finding the problem and fixing it?

Thanks in advance for your help.

Ken Housley

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to