Listbox - Active index

Discussion in 'Python' started by rahulnag22@yahoo.com, May 25, 2007.

  1. Guest

    Hi,
    I am using a listbox in selectmode = MULTIPLE, I can get the current
    selected item in the listbox from index = "ACTIVE" , but is there a
    way to convert this "ACTIVE" to get the current selection index as a
    number.

    For multiple selectmode listboxes it returns a tuple of selected
    indexes, so I would have to write some extra code to get the current
    active selection index from the tuple, instead I was hoping there
    would be a way to get the current selection index number from the
    "ACTIVE" index.

    Thanks
    Rahul
     
    , May 25, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DC Gringo
    Replies:
    0
    Views:
    563
    DC Gringo
    Apr 6, 2004
  2. kent
    Replies:
    1
    Views:
    1,037
    Andrew de la Harpe
    May 3, 2004
  3. Simon Prince
    Replies:
    2
    Views:
    3,591
    =?Utf-8?B?TWljaGFlbCBUYXlsb3I=?=
    Oct 19, 2004
  4. Chris Kettenbach

    Listbox selection to populate another listbox?

    Chris Kettenbach, Jun 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,882
    Chris Kettenbach
    Jun 16, 2005
  5. bh_jodokast

    Drag from one listbox to another listbox

    bh_jodokast, Oct 7, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    540
    bh_jodokast
    Oct 7, 2005
  6. COHENMARVIN
    Replies:
    1
    Views:
    722
    =?Utf-8?B?U3JlZWppdGggUmFtKE1DU0QuTkVUKQ==?=
    Oct 14, 2005
  7. carlos seramos
    Replies:
    2
    Views:
    741
    carlos seramos
    Aug 1, 2003
  8. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    619
    Tomasz Chmielewski
    Mar 4, 2008
Loading...