Il giorno mar, 09/02/2010 alle 18.36 +0600, Alexander Kuleshov ha scritto: > Hello. I have following problem. Am writing a simple program with > pygtk. I have a window on it located menu, statusbar and NoteBook. The > tabs should be located NoteBook element GtkTextView. By clicking on > the menu, I must appear a new tab with GtkTextView. But I get the > following: Can't set a parent on widget which has a parent > > What to do in this case? >
Replace
self.tab_panel.append_page(self.editor, gtk.Label("ASD"))
with
self.tab_panel.append_page(gtk.TextView(), gtk.Label("ASD"))
self.tab_panel.show_all()
, then, fix the organization of the program in order to make it do what
you want.
Pietro
signature.asc
Description: Questa è una parte del messaggio firmata digitalmente
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
