Problems with Gtk::List

Discussion in 'Perl Misc' started by Guenther Sohler, Aug 5, 2005.

  1. I have programmed a small application with Gtk::List
    and Gtk::Clist respecively

    I I have a graphical vertical list of labels, which I can select.
    But during the callback function of "selection_changed" I did not
    find out any possibility to get the text or the index of the selection

    my approach so far is


    my ( $gtklist, $frame, $event ) = @_;
    my @dlist = $gtklist->selection;
    my $item;
    foreach $item (@dlist)
    {
    }

    How do I get the text from $item ?
     
    Guenther Sohler, Aug 5, 2005
    #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. Dan Nawara

    GTK problems on gnome-python install

    Dan Nawara, Sep 17, 2003, in forum: Python
    Replies:
    0
    Views:
    394
    Dan Nawara
    Sep 17, 2003
  2. Dave Walker

    Problems with pygtk/gtk.glade

    Dave Walker, Jul 22, 2004, in forum: Python
    Replies:
    1
    Views:
    369
    Haim Ashkenazi
    Jul 22, 2004
  3. Replies:
    2
    Views:
    538
  4. Gergely Kontra
    Replies:
    2
    Views:
    263
    Joao Pedrosa
    Jun 18, 2004
  5. Alex Shulgin
    Replies:
    1
    Views:
    189
    thefed
    Nov 21, 2007
Loading...

Share This Page