Does wxPython have a widget like "this"?

Not a feature in the making :slight_smile:

···

On Sun, Oct 17, 2010 at 6:01 PM, Boštjan Mejak bostjan.mejak@gmail.com wrote:

What I miss in this widget is that when I select an item and either Remove it or Add it, the shifted item is not highlighted (doesn’t have focus) in the other box that was shifted to. Is that by design or is this a feature in the making?

Would it look too bad if that widget behaves the way I miss about it?

···

On Sun, Oct 17, 2010 at 8:32 PM, yoav glazner yoavglazner@gmail.com wrote:

On Sun, Oct 17, 2010 at 6:01 PM, Boštjan Mejak bostjan.mejak@gmail.com wrote:

What I miss in this widget is that when I select an item and either Remove it or Add it, the shifted item is not highlighted (doesn’t have focus) in the other box that was shifted to. Is that by design or is this a feature in the making?

Not a feature in the making :slight_smile:

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Yes, both are useful. Note, however, that

  remove_added_items_from_source_list = False

and

  allow_adding_items_multiple_times = False

are illogical if used together.

Karsten

···

On Thu, Oct 14, 2010 at 02:24:10PM -0700, Robin Dunn wrote:

Agreed. Also your reply has sparked another thought for me: Another
style flag could control whether items are removed from the source
list when they are added to the selected list. And another could
control whether is is allowed to put an item in the selected list
more than once.

--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

I think it can look very nice, Do you want to add it?

···

On Sun, Oct 17, 2010 at 10:28 PM, Boštjan Mejak bostjan.mejak@gmail.com wrote:

Would it look too bad if that widget behaves the way I miss about it?

Hi,

I have added the properties add_button_label and
remove_button_label which do just that: setting the
respective button label :slight_smile:

That way people can rename the buttons, for example to
localize them.

Karsten

items_picker.py (8.01 KB)

···

--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

Cool!

When is the next wxpython release? can this widget be included now?

···

On Mon, Oct 18, 2010 at 11:26 PM, Karsten Hilbert Karsten.Hilbert@gmx.net wrote:

Hi,

I have added the properties add_button_label and

remove_button_label which do just that: setting the

respective button label :slight_smile:

That way people can rename the buttons, for example to

localize them.

Karsten

I had the feeling some people considered appending items a
more reasonable default over sorting them into the target
list.

A suggestion:

Would you consider adding "add all", "remove all" buttons as
well as a "reload_source_list_items" method ?

The docs might benefit from a hint that non-virtual lists
are used such that users better have limited total amounts
of items.

Karsten

···

On Thu, Oct 21, 2010 at 07:24:58AM +0200, yoav glazner wrote:

> I have added the properties add_button_label and
> remove_button_label which do just that: setting the
> respective button label :slight_smile:
>
> That way people can rename the buttons, for example to
> localize them.

Cool!
When is the next wxpython release? can this widget be included now?

--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

Oh, wait, the "Items" property already seems to do that, right ?

Karsten

···

On Thu, Oct 21, 2010 at 09:29:54AM +0200, Karsten Hilbert wrote:

well as a "reload_source_list_items" method ?

--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

well as a “reload_source_list_items” method ?

Oh, wait, the “Items” property already seems to do that, right ?

Items property is like Set/GetItems (the source list…)

about a hint that the list are not virtual, I always think that a list is not virtual unless stated otherwise

2.9.1.1 is already tagged and in the pipeline, soon to be released. I've added the itemspicker to my source tree for 2.9.2 and also to my 2.8 tree in case there is a 2.8.12 release.

···

On 10/20/10 10:24 PM, yoav glazner wrote:

On Mon, Oct 18, 2010 at 11:26 PM, Karsten Hilbert > <Karsten.Hilbert@gmx.net <mailto:Karsten.Hilbert@gmx.net>> wrote:

    Hi,

    I have added the properties add_button_label and
    remove_button_label which do just that: setting the
    respective button label :slight_smile:

    That way people can rename the buttons, for example to
    localize them.

    Karsten

Cool!
When is the next wxpython release? can this widget be included now?

--
Robin Dunn
Software Craftsman

Nice to see such things happen.

···

2010/10/21 Robin Dunn robin@alldunn.com

On 10/20/10 10:24 PM, yoav glazner wrote:

On Mon, Oct 18, 2010 at 11:26 PM, Karsten Hilbert > > <Karsten.Hilbert@gmx.net mailto:Karsten.Hilbert@gmx.net> wrote:

Hi,



I have added the properties add_button_label and

remove_button_label which do just that: setting the

respective button label :-)



That way people can rename the buttons, for example to

localize them.



Karsten

Cool!

When is the next wxpython release? can this widget be included now?

2.9.1.1 is already tagged and in the pipeline, soon to be released. I’ve added the itemspicker to my source tree for 2.9.2 and also to my 2.8 tree in case there is a 2.8.12 release.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

cool.

···

On Thu, Oct 21, 2010 at 7:06 PM, Robin Dunn robin@alldunn.com wrote:

On 10/20/10 10:24 PM, yoav glazner wrote:

On Mon, Oct 18, 2010 at 11:26 PM, Karsten Hilbert > > <Karsten.Hilbert@gmx.net mailto:Karsten.Hilbert@gmx.net> wrote:

Hi,



I have added the properties add_button_label and

remove_button_label which do just that: setting the

respective button label :-)



That way people can rename the buttons, for example to

localize them.



Karsten

Cool!

When is the next wxpython release? can this widget be included now?

2.9.1.1 is already tagged and in the pipeline, soon to be released. I’ve added the itemspicker to my source tree for 2.9.2 and also to my 2.8 tree in case there is a 2.8.12 release.