Gtk::Comb
- From: Andy Ford <andy ford telindus co uk>
- To: gtk-perl-list gnome org
- Subject: Gtk::Comb
- Date: 06 Mar 2003 16:57:15 +0000
I am trying to update a Gtk::Combo widget with text I insert into a
Gtk::Entry Widget. I can get the text from the Entry widget and print it
to screen but so far I have been unsuccessful adding it to the list for
the Gtk::Combo.
Here's how I did...
$button_add->signal_connect( "clicked", \&add_entry, $entry, $combo );
sub add_entry
{
my ( $widget, $entry, $combo ) = @_;
my $entry_text = $entry->get_text();
print "Entry contents: $entry_text\n";
$combo->list->append_items($entry_text);
}
I get the following error...
item cannot be undef at ... etc etc
Thanks
--
Andy Ford
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]