Re: SimpleList redraw/refresh
- From: Juergen Zahrer <jzahrer unix sbg ac at>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: SimpleList redraw/refresh
- Date: 13 Jul 2004 08:57:58 +0200
On Sun, 2004-07-11 at 19:41, Ross McFarland wrote:
On Sun, 2004-07-11 at 13:05, Jens Wilke wrote:
On Sunday 11 July 2004 18:09, Juergen Zahrer wrote:
or have i to redraw/refresh the hole window ( but how? )
Nein, just repeat
@{$categories->{data}} = @hosts;
you can treat $categories->{data} as a perl array reference and do
anything that you would normally do to a perl array reference to it. the
only thing to watch out for is replacing the reference, i.e. don't do
this:
$categories->{data} = \ data;
because you'll lose the tie magic that is SimpleList.
^^^^^^^^^
thanks,
that's it.
have a look at examples/simplelist.pl in the Gtk2 perl source for a
through run through of this stuff. there so much going on it can be hard
to wade through, but it should exemplify most anything you'd want to do.
--
-rm
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
--
-------------------------------------------------------------------------
Juergen Zahrer | juergen zahrer sbg ac at
University of Salzburg/Computer Center | Tel: +43 (662) 8044 6745
5020 Salzburg/Austria | Fax: +43 (662) 6389 6745
key ID 957441D7 | www.users.sbg.ac.at/~jzahrer
-------------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]