Just to fix things, 

I replied privatly to Mark by mistake.

He said it worked for him.

Regards,
Joao

--- Joao Pedrosa <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I have rh9 as well and it works ok for me.
> 
> Perhaps you have some version conflict over
> there.
> 
> You could rewrite as follows to see if it works.
> 
> --- bos ---
> import pygtk as pygtk
> pygtk.require('2.0')
> import gtk
>                                                     
>  
>                          
> def hello_cb(button):
>         print "Hello World"
>         window.destroy()
>                                                     
>  
>                          
> print 'before'
> window = gtk.Window(gtk.WINDOW_TOPLEVEL)
> print 'after'
> window.show_all()
> gtk.main()
> --- eos ---
> 
> My environment consists of: rh9, python 2.3 from
> cvs,
> pygtk from cvs.
> 
> --- "Mark C. Mason" <[EMAIL PROTECTED]> wrote:
> > This program:
> > 
> > #!/bin/env python
> > import gtk
> > 
> > def hello_cb(button):
> >         print "Hello World"
> >         window.destroy()
> > 
> > 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'
> > 
> > 
> > I've searched the pygtk archives, reinstalled
> pygtk
> > and libgtk to no
> > avail.  Help!  I'm out of time and out of ideas.
> > 
> > Mark Mason
> > 
> > _______________________________________________
> > pygtk mailing list   [EMAIL PROTECTED]
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ:
> http://www.async.com.br/faq/pygtk/
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to
> Outlook(TM).
> http://calendar.yahoo.com
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
_______________________________________________
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