llancet has asked for the wisdom of the Perl Monks concerning the following question:
/usr/bin/perl use Tk; use threads; use strict; my $mw=MainWindow->new(-title=>'test'); my $button=$mw->Button( -text => 'show the problem', -command => sub{ print "button: ouch!\n"; my $thread=async{print "inside thread\n";}; print "before join\n"; $thread->join; } ); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk with threads
by GrandFather (Saint) on May 12, 2008 at 02:32 UTC | |
by shmem (Chancellor) on May 12, 2008 at 07:52 UTC | |
|
Re: Tk with threads
by renodino (Curate) on May 12, 2008 at 14:09 UTC | |
|
Re: Tk with threads
by zentara (Cardinal) on May 12, 2008 at 18:38 UTC |