[pygtk] Notebook
Steve McClure
smcclure at racemi.com
Wed Dec 3 23:45:17 WST 2008
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)
On Dec 3, 2008, at 6:15 AM, Frédéric wrote:
>
> Le 3/12/2008, "Paul Malherbe" <paul at tartan.co.za> a écrit:
>
>> What exactly do you mean by 'disable all other pages' ?
>> Do you mean disable the tags or the pages.
>
> I don't want the user to switch to other pages of the notebook.
>
> --
> Frédéric
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
--
Steve McClure
smcclure at racemi.com
More information about the pygtk
mailing list