phoenix_title wx.lib.agw.persist.persist_handlers.TextCtrlHandler

Supports saving/restoring a TextCtrl entered string.

This class handles the following wxPython widgets:

  • TextCtrl;

  • SearchCtrl;

  • lib.expando.ExpandoTextCtrl;

  • lib.masked.textctrl.TextCtrl;

  • lib.masked.combobox.ComboBox;

  • lib.masked.ipaddrctrl.IpAddrCtrl;

  • lib.masked.timectrl.TimeCtrl;

  • lib.masked.numctrl.NumCtrl;


class_hierarchy Class Hierarchy

Inheritance diagram for class TextCtrlHandler:

sub_classes Known Subclasses

wx.lib.agw.persist.persist_handlers.TextEntryHandler


super_classes Known Superclasses

wx.lib.agw.persist.persist_handlers.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 TextCtrlHandler(AbstractHandler)

Supports saving/restoring a TextCtrl entered string.

This class handles the following wxPython widgets:

  • TextCtrl;

  • SearchCtrl;

  • lib.expando.ExpandoTextCtrl;

  • lib.masked.textctrl.TextCtrl;

  • lib.masked.combobox.ComboBox;

  • lib.masked.ipaddrctrl.IpAddrCtrl;

  • lib.masked.timectrl.TimeCtrl;

  • lib.masked.numctrl.NumCtrl;


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.