[pygtk] Can't set a parent on widget which has a parent
Pietro Battiston
toobaz at email.it
Wed Feb 10 02:59:49 WST 2010
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
-------------- parte successiva --------------
Un allegato non testuale � stato rimosso....
Nome: non disponibile
Tipo: application/pgp-signature
Dimensione: 197 bytes
Descrizione: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
firmata digitalmente
Url: http://www.daa.com.au/pipermail/pygtk/attachments/20100209/3f607216/attachment.pgp
More information about the pygtk
mailing list