An editable listbox is composite control that lets the user easily enter, delete and reorder a list of strings.
This class supports the following styles:
wx.adv.EL_ALLOW_NEW
: Allows the user to enter new strings.
wx.adv.EL_ALLOW_EDIT
: Allows the user to edit existing strings.
wx.adv.EL_ALLOW_DELETE
: Allows the user to delete existing strings.
wx.adv.EL_NO_REORDER
: Does not allow the user to reorder the strings.
wx.adv.EL_DEFAULT_STYLE
: Default style: EL_ALLOW_NEW|wxEL_ALLOW_EDIT|wxEL_ALLOW_DELETE.
The control uses a wx.ListCtrl internally and emit its events.
See also
Default constructor. |
|
Creates the editable listbox for two-step construction. |
|
Returns a reference to the delete button used in the EditableListBox. |
|
Returns a reference to the down button used in the EditableListBox. |
|
Returns a reference to the edit button used in the EditableListBox. |
|
Returns a reference to the listctrl used in the EditableListBox. |
|
Returns a reference to the new button used in the EditableListBox. |
|
Returns a list of the current contents of the control. |
|
Returns a reference to the up button used in the EditableListBox. |
|
Replaces current contents with given strings. |
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
Possible constructors:
EditableListBox() -> None
EditableListBox(parent : Window, id: int=ID_ANY, label: str='', pos:
Point=DefaultPosition, size: Size=DefaultSize, style:
int=EL_DEFAULT_STYLE, name: str=EditableListBoxNameStr) -> None
An editable listbox is composite control that lets the user easily enter, delete and reorder a list of strings.
__init__ (self)
Default constructor.
None
__init__ (self, parent : Window, id: int=ID_ANY, label: str=’’, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=EL_DEFAULT_STYLE, name: str=EditableListBoxNameStr)
Constructor, creating and showing a list box.
parent (wx.Window) – Parent window. Must not be None
.
id (wx.WindowID) – Window identifier. The value wx.ID_ANY
indicates a default value.
label (string) – The text shown just before the list control.
pos (wx.Point) – Window position. If wx.DefaultPosition
is specified then a default position is chosen.
size (wx.Size) – Window size. If wx.DefaultSize
is specified then the window is sized appropriately.
style (long) – Window style. See wx.adv.EditableListBox.
name (string) – Window name.
None
See also
Creates the editable listbox for two-step construction.
See wx.adv.EditableListBox for further details.
variant (WindowVariant)
VisualAttributes
Returns a reference to the delete button used in the EditableListBox.
BitmapButton
Returns a reference to the down button used in the EditableListBox.
BitmapButton
Returns a reference to the edit button used in the EditableListBox.
BitmapButton
Returns a reference to the listctrl used in the EditableListBox.
Returns a reference to the new button used in the EditableListBox.
BitmapButton
Returns a list of the current contents of the control.
List[str]
Returns a reference to the up button used in the EditableListBox.
BitmapButton
Replaces current contents with given strings.
strings (list of strings)
None
See GetDelButton
See GetDownButton
See GetEditButton
See GetListCtrl
See GetNewButton
See GetStrings
and SetStrings
See GetUpButton