wxEditableListBox without Edit/New/Delete buttons

First of all, I'm extremely new to Python, wxWindows and
wxPython, and to OOP in general. Excuse me if I say any incoherent thing
:slight_smile:

聽聽I'm searching for some way to have a list of items and be able
to alter their order interactively. Say that I have a list like this:

聽聽One
聽聽Two
聽聽Three

聽聽I'd like to have a widget that allowed me to move these items
around with, for example, an "arrow up" and an "arrow down" button.
Following the example, if I selected the item "Two" and pressed the
"arrow up" button, the list will appear like this:

聽聽Two
聽聽One
聽聽Three

聽聽The widget wxEditableListBox is almost what I need, but I have a
problem with it: I don't know how to disable the New, Edit and Delete
buttons (to keep only the "arrow" buttons). Is it possible? If so, how?
Is there any other way to do this besides wxEditableListBox, even if not
a single control but a combination of some other?

聽聽Thanks in advance.

路路路

--
聽聽聽聽聽聽聽聽Roberto Suarez Soto 路 The world owes you nothing.
聽聽聽聽聽聽聽聽robe@retrincos.net 路 It was here first.
聽聽聽聽聽聽聽Coru帽a/Galicia/Spain 路 (Mark Twain)

Yes, it works. I knew about wxEL_*, but didn't know how to
"negate" them. Thank you very much :slight_smile:

路路路

On Feb/10/2004, Robin Dunn wrote:

The default value of the style parameter for wxEditableListBox is
wxEL_ALLOW_NEW | wxEL_ALLOW_EDIT | wxEL_ALLOW_DELETE, so just passing a
zero for style should disable those buttons.

--
    Roberto Suarez Soto 路
    robe@retrincos.net 路 Friends are relatives you make for yourself.
   Coru帽a/Galicia/Spain 路