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
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to