Re: a question about entry



ken said:
hello,everyone!I'm new to here,and new to gtk2-perl,too.
would anyone like to give me a example for entry?

check out the dialog.pl component of gtk-demo.

it usually boils down to

  $entry = Gtk2::Entry->new;
  $entry->set_text ($some_text);
  # do stuff
  $text = $entry->get_text;

you can also

  $entry->signal_connect (changed => sub {
                                  # do something on each typed letter
                            });

-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]