Re: Adding text to a Gtk2::Label from another thread.



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]