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. Advertising

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:
    554
    gerry
    Apr 24, 2004
  2. Replies:
    1
    Views:
    1,160
    David Wier
    Aug 5, 2005
  3. Neelu
    Replies:
    1
    Views:
    556
    TechBookReport
    Jan 10, 2006
  4. Gnarlodious
    Replies:
    4
    Views:
    17,642
    elizas
    May 5, 2010
  5. Adrian
    Replies:
    1
    Views:
    235
    Bullschmidt
    Feb 18, 2004
Loading...

Share This Page