.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.RearrangeCtrl:
==========================================================================================================================================
|phoenix_title| **wx.RearrangeCtrl**
==========================================================================================================================================
A composite control containing a :ref:`wx.RearrangeList` and the buttons allowing to move the items in it.
This control is in fact a panel containing the :ref:`wx.RearrangeList` control and the "Up" and "Down" buttons to move the currently selected item up or down. It is used as the main part of a :ref:`wx.RearrangeDialog`.
.. versionadded:: 2.9.0
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
RearrangeCtrl:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.RearrangeCtrl.__init__` Default constructor.
:meth:`~wx.RearrangeCtrl.Create` Effectively creates the window for an object created using the default constructor.
:meth:`~wx.RearrangeCtrl.GetClassDefaultAttributes`
:meth:`~wx.RearrangeCtrl.GetList` Return the listbox which is the main part of this control.
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.RearrangeCtrl.List` See :meth:`~wx.RearrangeCtrl.GetList`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.RearrangeCtrl(Panel)
**Possible constructors**::
RearrangeCtrl() -> None
RearrangeCtrl(parent : Window, id: int=ID_ANY, pos:
Point=DefaultPosition, size: Size=DefaultSize, order: List[int]=[],
items: List[str]=[], style: int=0, validator:
Validator=DefaultValidator, name: str=RearrangeListNameStr) -> None
A composite control containing a RearrangeList and the buttons
allowing to move the items in it.
.. method:: __init__(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**__init__** `(self)`
Default constructor.
:meth:`Create` must be called later to effectively create the control.
:rtype: `None`
:html:`
`
**__init__** `(self, parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr)`
Constructor really creating the control.
Please see :meth:`Create` for the parameters description.
:param `parent`:
:type `parent`: wx.Window
:param `id`:
:type `id`: wx.WindowID
:param `pos`:
:type `pos`: wx.Point
:param `size`:
:type `size`: wx.Size
:param `order`:
:type `order`: list of integers
:param `items`:
:type `items`: list of strings
:param `style`:
:type `style`: long
:param `validator`:
:type `validator`: wx.Validator
:param `name`:
:type `name`: string
:rtype: `None`
:html:`
`
.. method:: Create(self, parent : Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr)
Effectively creates the window for an object created using the default constructor.
The parameters of this method are the same as for :meth:`wx.RearrangeList.Create` .
:param `parent`:
:type `parent`: wx.Window
:param `id`:
:type `id`: wx.WindowID
:param `pos`:
:type `pos`: wx.Point
:param `size`:
:type `size`: wx.Size
:param `order`:
:type `order`: list of integers
:param `items`:
:type `items`: list of strings
:param `style`:
:type `style`: long
:param `validator`:
:type `validator`: wx.Validator
:param `name`:
:type `name`: string
:rtype: `bool`
.. staticmethod:: GetClassDefaultAttributes(variant: WindowVariant=WINDOW_VARIANT_NORMAL)
:param `variant`:
:type `variant`: wx.WindowVariant
:rtype: :ref:`wx.VisualAttributes`
.. method:: GetList(self)
Return the listbox which is the main part of this control.
:rtype: :ref:`wx.RearrangeList`
.. attribute:: List
See :meth:`~wx.RearrangeCtrl.GetList`