Hi! I don't know if this is the right place to ask it. If not, please tell me where should I ask.
I'm making a program with Glade+pygtk. I attach the Glade file. A piece
of the program follows:
from gtk import *
from libglade import *
f= GladeXML("DobEditor.glade", "MainWindow")
win=f.get_widget("MainWindow")
editor=f.get_widget("DobEditor")
win.add(editor)
mainloop()
As you can see, what I try to do is to insert a widget into another, but
python says:
Traceback (most recent call last):
File "gladetest1.py", line 10, in ?
win.add(editor)
File "/usr/lib/python2.1/site-packages/gtk.py", line 514, in add
_gtk.gtk_container_add(self._o, child._o)
AtributeError: 'None' object has no attribute '_o'
Could you please tell me what should I do to insert a widget into the
other one or what should I read to learn how to do it?
Thank you very much!
D�vik
DobEditor.glade
Description: Binary data
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
