wx.lib.agw.persist.persist_handlers.ListBoxHandler¶
Supports saving/restoring selected items in ListBox, ListCtrl, ListView,
VListBox, html.HtmlListBox, html.SimpleHtmlListBox, adv.EditableListBox.
This class handles the following wxPython widgets:
ListBox;ListCtrl(only for selected items. For column sizes seeListCtrlHandler);ListView(only for selected items. For column sizes seeListCtrlHandler);VListBox;html.HtmlListBox;html.SimpleHtmlListBox;adv.EditableListBox.
Class Hierarchy¶
Known Subclasses¶
wx.lib.agw.persist.persist_handlers.CheckListBoxHandler, wx.lib.agw.persist.persist_handlers.ListCtrlHandler
Known Superclasses¶
wx.lib.agw.persist.persist_handlers.AbstractHandler
Methods Summary¶
Default class constructor. |
|
Returns a short and meaningful string description of your widget. |
|
Returns a list of selected items for |
|
Restores the widget’s settings by calling |
|
Saves the widget’s settings by calling |
Class API¶
- class ListBoxHandler(AbstractHandler)¶
Supports saving/restoring selected items in
ListBox,ListCtrl,ListView,VListBox,html.HtmlListBox,html.SimpleHtmlListBox,adv.EditableListBox.This class handles the following wxPython widgets:
ListBox;ListCtrl(only for selected items. For column sizes seeListCtrlHandler);ListView(only for selected items. For column sizes seeListCtrlHandler);VListBox;html.HtmlListBox;html.SimpleHtmlListBox;adv.EditableListBox.
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.
- GetSelections(self, listBox)¶
Returns a list of selected items for
ListBox,ListCtrl,ListView,VListBox,html.HtmlListBox,html.SimpleHtmlListBox,adv.EditableListBox.- Parameters:
listBox – an instance of
ListBox,ListCtrl,ListView,VListBox,html.HtmlListBox,html.SimpleHtmlListBox,adv.EditableListBox..
- 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.