wx.lib.agw.persist.persist_handlers.ToolBarHandler¶
Supports saving/restoring the lib.agw.aui.auibar.AuiToolBar items state.
This class handles the following wxPython widgets:
lib.agw.aui.auibar.AuiToolBar.
Todo
Find a way to handle ToolBar UI settings as it has been done for
lib.agw.aui.auibar.AuiToolBar: currently ToolBar doesn’t seem
to have easy access to the underlying toolbar tools.
Class Hierarchy¶
Known Superclasses¶
wx.lib.agw.persist.persist_handlers.AbstractHandler
Methods Summary¶
Default class constructor. |
|
Returns a short and meaningful string description of your widget. |
|
Restores the widget’s settings by calling |
|
Saves the widget’s settings by calling |
Class API¶
- class ToolBarHandler(AbstractHandler)¶
Supports saving/restoring the
lib.agw.aui.auibar.AuiToolBaritems state.This class handles the following wxPython widgets:
lib.agw.aui.auibar.AuiToolBar.
Todo
Find a way to handle
ToolBarUI settings as it has been done forlib.agw.aui.auibar.AuiToolBar: currentlyToolBardoesn’t seem to have easy access to the underlying toolbar tools.
Methods¶
- __init__(self, pObject)¶
Default class constructor.
- Parameters:
pObject – a
PersistentObjectcontaining information about the persistent widget.
- GetKind(self)¶
Returns a short and meaningful string description of your widget.
Note
This method must be overridden in derived classes.
- Restore(self)¶
Restores the widget’s settings by calling
PersistentObject.RestoreValue(), which in turns callsPersistenceManager.RestoreValue().Note
This method must be overridden in derived classes.
- Save(self)¶
Saves the widget’s settings by calling
PersistentObject.SaveValue(), which in turns callsPersistenceManager.SaveValue().Note
This method must be overridden in derived classes.