I haven't recieved a response to my previous question, so I thought a
bit more info might help...  After executing the libglade tutorial at
http://www.baypiggies.org/10mintig.html, I'm getting an error "unknown
widget class 'GnomeApp'". The trace back I'm getting is: 

Traceback:
[Deleted]
File "/usr/lib/python1.5/site-packages/gtk.py", line 70 in __getattr__
    raise AttributeError, attr
AttributeError: getwidget

The source code is:
#!/usr/bin/python

from gtk import *
from gnome.ui import *
from GDK import * 
import libglade

def main():
    widgets = libglade.GladeXML('foo.glade')

    app1 = widgets.get_widget('app1')
    
    label1 = widgets.getwidget('label1') #<-- error raised
    label2 = widgets.getwidget('label2')
    label3 = widgets.getwidget('label3')
    
    label1.set_text('New Text One')
    label2.set_text('New Text Two')
    label3.set_text('New Text Three')
    app1.set_title('App1 Title')
    
    mainloop()

if __name__ == '__main__':
    main()
 


Thanks!
Mike

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

Reply via email to