GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.RearrangeList — wxPython 4.3.2 Docs
|
Default constructor. |
|
Return |
|
Return |
|
Effectively creates the window for an object created using the default constructor. |
|
Return the current order of the items. |
|
Move the currently selected item one position below. |
|
Move the currently selected item one position above. |
Properties Summary¶See |
Class API¶Possible constructors:
RearrangeList() -> None RearrangeList(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, order=[], items=[], style=0, validator=DefaultValidator, name=RearrangeListNameStr) -> None
A listbox-like control allowing the user to rearrange the items and to enable or disable them.
__init__ (self)
Default constructor.
Create must be called later to effectively create the control.
None
__init__ (self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, order=[], items=[], style=0, validator=DefaultValidator, name=RearrangeListNameStr)
Constructor really creating the control.
Please see Create for the parameters description.
parent (wx.Window)
id (wx.WindowID)
pos (wx.Point)
size (wx.Size)
order (list of integers)
items (list of strings)
style (long)
validator (wx.Validator)
name (string)
None
Return True if the currently selected item can be moved down.
bool
See also
Return True if the currently selected item can be moved up.
This function is useful for EVT_UPDATE_UI handler for the standard “Up” button often used together with this control and wx.RearrangeCtrl uses it in this way.
bool
True if the currently selected item can be moved up in the listbox, False if there is no selection or the current item is the first one.
See also
Effectively creates the window for an object created using the default constructor.
This function is very similar to wx.CheckListBox.Create except that it has an additional parameter specifying the initial order of the items. Please see the class documentation for the explanation of the conventions used by the order argument.
parent (wx.Window) – The parent window, must be non-null.
id (wx.WindowID) – The window identifier.
pos (wx.Point) – The initial window position.
size (wx.Size) – The initial window size.
order (list of integers) – Array specifying the initial order of the items in items array.
items (list of strings) – The items to display in the list.
style (long) – The control style, there are no special styles for this class but the base class styles can be used here.
validator (wx.Validator) – Optional window validator.
name (string) – Optional window name.
bool
variant (WindowVariant)
Return the current order of the items.
The order may be different from the one passed to the constructor if MoveCurrentUp or MoveCurrentDown were called.
List[int]
Move the currently selected item one position below.
bool
See also
Move the currently selected item one position above.
This method is useful to implement the standard “Up” button behaviour and wx.RearrangeCtrl uses it for this.
bool
True if the item was moved or False if this couldn’t be done.
See also
See GetCurrentOrder