in reply to Re: Perl Tk Asynchronous Progress Updates
in thread Perl Tk Asynchronous Progress Updates
Thanks for the tip. I tried Tk::After, but that doesn't seem to work. Perhaps I misunderstood the cpan page. The modified code is below.
my $button=$mw->Button(-text=>'Update'); $button->after(0, [\&update, \$prog ]); $button->pack; $mw->ProgressBar(-variable=>\$prog)->pack;
For some reason the callback function is now executed immediately after the script is run (and still not asynchronously), rather than after the button event. Any help would be much appreciated.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl Tk Asynchronous Progress Updates
by BrowserUk (Patriarch) on Jul 01, 2013 at 22:05 UTC | |
by Anonymous Monk on Jul 02, 2013 at 15:39 UTC |