[wxPython] wxListBox Questions

Dear wxPython Group,

    I am using wxListBox to toggle multiple items on and off (i.e., I am using wxLB_MULTIPLE mode).
    If all the items in the list are selected and I select an arbitrary item and deselect it, then how
    do I get back that deselected item's position?

    None of the wxListBox members returns the necessary current deselected item position.

Thanks in advance for your help!

-Dean

P.S. "Please send response to: williams13@llnl.gov"

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

    I am using wxListBox to toggle multiple items on and off (i.e., I am

using wxLB_MULTIPLE mode).

    If all the items in the list are selected and I select an arbitrary

item and deselect it, then how

    do I get back that deselected item's position?

    None of the wxListBox members returns the necessary current deselected

item position.

Looks like the only way is to call listbox.GetSelections() and figure out
what is missing since last time. I thought maybe the event object would
have some info that would help but it only references the first selected
item in the list.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users