phoenix_title wx.lib.agw.persist.persist_handlers.AbstractHandler

Base class for persistent windows, uses the window name as persistent name by default and automatically reacts to the window destruction.

Note

This is an abstract class. If you wish to add another (custom) handler for your widgets, you should derive from AbstractHandler and override the Save(), Restore() and GetKind() methods.


class_hierarchy Class Hierarchy

Inheritance diagram for class AbstractHandler:

sub_classes Known Subclasses

wx.lib.agw.persist.persist_handlers.AUIHandler, wx.lib.agw.persist.persist_handlers.BookHandler, wx.lib.agw.persist.persist_handlers.CalendarCtrlHandler, wx.lib.agw.persist.persist_handlers.CheckBoxHandler, wx.lib.agw.persist.persist_handlers.ChoiceComboHandler, wx.lib.agw.persist.persist_handlers.CollapsiblePaneHandler, wx.lib.agw.persist.persist_handlers.ColourPickerHandler, wx.lib.agw.persist.persist_handlers.DatePickerHandler, wx.lib.agw.persist.persist_handlers.FileDirPickerHandler, wx.lib.agw.persist.persist_handlers.FileHistoryHandler, wx.lib.agw.persist.persist_handlers.FoldPanelBarHandler, wx.lib.agw.persist.persist_handlers.FontPickerHandler, wx.lib.agw.persist.persist_handlers.ListBoxHandler, wx.lib.agw.persist.persist_handlers.MediaCtrlHandler, wx.lib.agw.persist.persist_handlers.MenuBarHandler, wx.lib.agw.persist.persist_handlers.RadioBoxHandler, wx.lib.agw.persist.persist_handlers.RadioButtonHandler, wx.lib.agw.persist.persist_handlers.ScrolledWindowHandler, wx.lib.agw.persist.persist_handlers.SliderHandler, wx.lib.agw.persist.persist_handlers.SpinHandler, wx.lib.agw.persist.persist_handlers.SplitterHandler, wx.lib.agw.persist.persist_handlers.TextCtrlHandler, wx.lib.agw.persist.persist_handlers.ToggleButtonHandler, wx.lib.agw.persist.persist_handlers.ToolBarHandler, wx.lib.agw.persist.persist_handlers.TreeCtrlHandler


method_summary Methods Summary

__init__

Default class constructor.

GetKind

Returns a short and meaningful string description of your widget.

Restore

Restores the widget’s settings by calling PersistentObject.RestoreValue(), which in

Save

Saves the widget’s settings by calling PersistentObject.SaveValue(), which in


api Class API

class AbstractHandler(object)

Base class for persistent windows, uses the window name as persistent name by default and automatically reacts to the window destruction.

Note

This is an abstract class. If you wish to add another (custom) handler for your widgets, you should derive from AbstractHandler and override the Save(), Restore() and GetKind() methods.


Methods

__init__(self, pObject)

Default class constructor.

Parameters:

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.