Supports saving/restoring window position and size as well as maximized/iconized/restore state for toplevel windows.
This class handles the following wxPython widgets:
All wx.Frame
derived classes;
All Dialog
derived classes.
In addition, if the toplevel window has an associated AuiManager (whether it is
AuiManager
) and
PersistenceManager
has the PM_SAVE_RESTORE_AUI_PERSPECTIVES
style set (the default), this class
will also save and restore AUI perspectives using the underlying AUIHandler
class.
wx.lib.agw.persist.persist_handlers.ChoiceDialogHandler
, wx.lib.agw.persist.persist_handlers.ColourDialogHandler
, wx.lib.agw.persist.persist_handlers.FileDirDialogHandler
, wx.lib.agw.persist.persist_handlers.FindReplaceHandler
, wx.lib.agw.persist.persist_handlers.FontDialogHandler
, wx.lib.agw.persist.persist_handlers.TextEntryHandler
wx.lib.agw.persist.persist_handlers.AUIHandler
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 |
TLWHandler
(AUIHandler)¶Supports saving/restoring window position and size as well as maximized/iconized/restore state for toplevel windows.
This class handles the following wxPython widgets:
All wx.Frame
derived classes;
All Dialog
derived classes.
In addition, if the toplevel window has an associated AuiManager (whether it is
AuiManager
) and
PersistenceManager
has the PM_SAVE_RESTORE_AUI_PERSPECTIVES
style set (the default), this class
will also save and restore AUI perspectives using the underlying AUIHandler
class.
__init__
(self, pObject)¶Default class constructor.
pObject – a PersistentObject
containing 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 calls PersistenceManager.RestoreValue()
.
Note
This method must be overridden in derived classes.
Save
(self)¶Saves the widget’s settings by calling PersistentObject.SaveValue()
, which in
turns calls PersistenceManager.SaveValue()
.
Note
This method must be overridden in derived classes.