[pygtk] Notebook
Frédéric
frederic.mantegazza at gbiloba.org
Thu Dec 4 03:08:32 WST 2008
On mercredi 03 décembre 2008, Steve McClure wrote:
> I've used this before:
>
> notebook = self.get_widget('slotDialogSlotNotebook')
> pageNames = ('slotDialogConfigHBox',
> 'slotDialogHWmonHBox',
> 'slotDialogLoadTable')
> for pageName in pageNames:
>
> # for the load page, we just care about the running
> state, the
> # hardware related pages need to have a blade.
> if pageName == 'slotDialogLoadTable':
> sens = self._slot.isRunning()
> else:
> sens = haveRunningBlade
>
> page = self.get_widget(pageName)
> label = notebook.get_tab_label(page)
> label.set_sensitive(sens)
> page.set_sensitive(sens)
Thank you all for your help; it works fine :o)
--
Frédéric
http://www.gbiloba.org
More information about the pygtk
mailing list