Re: Gtk::List

On Thu, 2003-03-06 at 12:28, Andy Ford wrote:
Even if I try inserting a new item to a list I get...

my $list = new Gtk::List();
my @items = "HI";

I get the following error...

item cannot be undef at ... etc etc

I must be doing something fundamentally wrong!?

yes.  :-)

you're passing a list of strings to append_items, which wants a list of
Gtk::ListItem widgets.

according to the Gtk::reference manpage, 

       $listâ>append_items (...)

       - ... (list) list of Gtk::ListItem widgets


       $list_itemâ>deselect ()

       Gtk::ListItem Gtk::ListItemâ>new ($string)

       - $string (string)

       Gtk::ListItem Gtk::ListItemâ>new_with_label ($string)

       - $string (scalar)

       $list_itemâ>select ()

muppet <scott asofyet org>

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