Re: Adding text to a Gtk2::Label from another thread.
- From: ArtÅras Ålajus <x11 h2o pieva net>
- To: Toby A Inkster <tobyink goddamn co uk>
- Cc: gtk-perl-list gnome org
- Subject: Re: Adding text to a Gtk2::Label from another thread.
- Date: Thu, 01 Jan 2004 17:59:59 +0200
I suggest you use Gtk2 main loop and not seperate thread.
i use this:
# listen on udp
my $listen = Gtk2::Helper->add_watch ( $vyc->{'listen'}->fileno, "in", sub { do_stuff($vyc->{'listen'}); } );
http://perl.skopos.lt/cgi-bin/cvsweb/~checkout~/GtkChat/bin/gui.pl?rev=1.9&content-type=text/plain
for source.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]