[pygtk] get label from notebook tab
M.B.
spooky.ln at tbs-software.com
Sun Feb 21 18:18:19 WST 2010
V Sat, 20 Feb 2010 15:37:57 +0600
Alexander Kuleshov <kuleshovmail at gmail.com> napsáno:
> Hi to all.
> I have a gtk.Notebook and i want get text of label from current
> gtk.noteBook tab. I make that:
>
> text = self.get_tab_label(self.get_nth_page(self.get_current_page()))
>
> But on tab i have hbox and label with close button in hbox.
>
> if i print text i see None because it return HBox. How can i get text
> from label?
>
> Thank you.
if return HBox. use HBox.get_children() for widgets in it.
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list