Method summary
- __init__(self, *args)
- addTab(self, w, text)
- clear(self)
- restoreState(self, state, factory)
- saveState(self)
- setActiveIcon(self, w, icon = None)
- setCurrentWidget(self, w)
- setWidgetTitle(self, w, title)
Methods
- __init__(self, *args)
Initialise the instance.
- addTab(self, w, text)
Add a new tab to the main tab widget.
- clear(self)
Restore the widget to its pristine state.
- restoreState(self, state, factory)
Restore the contents from the given state (returned by a previous call to saveState()). factory is a callable that is passed the object name of the widget that is in the state and needs to be restored. The callable returns the restored widget.
- saveState(self)
Returns a Python object containing the saved state of the widget. Widgets are saved only by their object name.
- setActiveIcon(self, w, icon = None)
Set the active icon on a widget.
- setCurrentWidget(self, w)
Make the given widget current.
- setWidgetTitle(self, w, title)
Set the title for the given widget.