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:

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.