Re: SimpleList redraw/refresh
- From: Ross McFarland <rwmcfa1 neces com>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: SimpleList redraw/refresh
- Date: Sun, 11 Jul 2004 13:41:08 -0400
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.
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]