Hi,

window = gtk.Window(gtk.WINDOW_TOPLEVEL) # create a top level window
# never gets past here.

Produces this message:

    window = gtk.Window(gtk.WINDOW_TOPLEVEL) # create a top level window
AttributeError: 'module' object has no attribute 'Window'




Recent version of pygtk require you to select the version of pygtk you
want to use.
Make this line the first program line of your program and it should
work:

import pygtk; pygtk.require("2.0")

After this you can import gtk.


Bye, Martin Grimme -- http://www.pycage.de


_______________________________________________
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