curselection problem in list box

Discussion in 'Perl Misc' started by Vivek, Jun 22, 2006.

  1. Vivek

    Vivek Guest

    I am trying following code to see the selections made in current
    listbox but can't see any output from print statement...

    $io_dir_o = $frame2->Listbox(-selectmode => "multiple")->pack(-side =>
    'left');
    $io_dir_o->insert('end',qw/bidi out in od_bidi od_out analog avdd avss
    vdd vss vddo corner filler/);
    $io_dir_o->bind("<Button-1>");
    $sel = $io_dir_o->curselection;
    print (",$sel,");

    Any suggestions. I am getting a ",," as output means empty string.
    Thanks,
    Vivek
     
    Vivek, Jun 22, 2006
    #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. gerry
    Replies:
    0
    Views:
    673
    gerry
    Apr 24, 2004
  2. Replies:
    1
    Views:
    1,367
    David Wier
    Aug 5, 2005
  3. Scott324
    Replies:
    3
    Views:
    4,663
    Jason Kester
    Oct 27, 2005
  4. Neelu
    Replies:
    1
    Views:
    712
    TechBookReport
    Jan 10, 2006
  5. Gnarlodious
    Replies:
    4
    Views:
    18,007
    elizas
    May 5, 2010
  6. mc
    Replies:
    5
    Views:
    1,921
    Walter Wang [MSFT]
    Jun 26, 2006
  7. =?Utf-8?B?RGF2ZSBU?=

    Columns in Dropdown list and list box

    =?Utf-8?B?RGF2ZSBU?=, Jun 25, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    613
    jufemaiz: jc
    Jun 27, 2007
  8. Adrian
    Replies:
    1
    Views:
    492
    Bullschmidt
    Feb 18, 2004
Loading...