Re: $combo->list = ( $combo->list, "append1",...



Try:
$combo->list->append_items("HI");

Also, in general you do not do:
$obj->some_property = $value

Instead, you do:
$obj->some_property($value);

The "property" is actually an object method subroutine which sets the
value you specify, and does any internal operations necessary because of
your new setting.


On Wed, 2003-02-26 at 11:43, Andy Ford wrote:
I am trying to use the combo->list = ($combo->list, "new entry") to
append a 'new entry' to a combo box.

When I use it as thus....

sub func
{
   my ( $widget, $combo ) = @_;
   combo->list = ($combo->list, "HI");
}

I get the following error ...

Can't modify non-lvalue subroutine call at .... etc etc

How do I append text to a combo box!?

Thanks


Andy Ford

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
-- 
Scott Smith <ssmith watson wustl edu>



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