Table Of Contents

Previous topic

DatePickerCtrlGeneric

Next topic

ExtHelpController

This Page

phoenix_title EditableListBox

An editable listbox is composite control that lets the user easily enter, delete and reorder a list of strings.

styles Window Styles

This class supports the following styles:

  • EL_ALLOW_NEW: Allows the user to enter new strings.
  • EL_ALLOW_EDIT: Allows the user to edit existing strings.
  • EL_ALLOW_DELETE: Allows the user to delete existing strings.
  • EL_NO_REORDER: Does not allow the user to reorder the strings.
  • EL_DEFAULT_STYLE: Default style: EL_ALLOW_NEW|EL_ALLOW_EDIT|EL_ALLOW_DELETE.

The control uses a ListCtrl internally and emit its events.


class_hierarchy Inheritance Diagram

Inheritance diagram for class EditableListBox

Inheritance diagram of EditableListBox


method_summary Methods Summary

__init__ Default constructor.
Create Creates the editable listbox for two-step construction.
SetStrings Replaces current contents with given strings.

property_summary Properties Summary

Strings See GetStrings and SetStrings

api Class API



class EditableListBox(Panel)

An editable listbox is composite control that lets the user easily enter, delete and reorder a list of strings.

Possible constructors:

EditableListBox()

EditableListBox(parent, id=ID_ANY, label='',
                pos=DefaultPosition, size=DefaultSize, style=EL_DEFAULT_STYLE,
                name=EditableListBoxNameStr)

Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)

Default constructor.



__init__ (self, parent, id=ID_ANY, label=’‘, pos=DefaultPosition, size=DefaultSize, style=EL_DEFAULT_STYLE, name=EditableListBoxNameStr)

Constructor, creating and showing a list box.

Parameters:
  • parent (Window) – Parent window. Must not be None.
  • id (int) – Window identifier. The value ID_ANY indicates a default value.
  • label (string) – The text shown just before the list control.
  • pos (Point) – Window position. If DefaultPosition is specified then a default position is chosen.
  • size (Size) – Window size. If DefaultSize is specified then the window is sized appropriately.
  • style (long) – Window style. See EditableListBox.
  • name (string) – Window name.

See also

Create





Create(self, parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, style=EL_DEFAULT_STYLE, name=EditableListBoxNameStr)

Creates the editable listbox for two-step construction.

See EditableListBox for further details.

Parameters:
  • parent (Window) –
  • id (int) –
  • label (string) –
  • pos (Point) –
  • size (Size) –
  • style (long) –
  • name (string) –
Return type:

bool



SetStrings(self, strings)

Replaces current contents with given strings.

Parameters:strings (list of strings) –

Properties



Strings

See GetStrings and SetStrings