HamNRye has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to write a fron end to a daemon. (Yes, noone around here can be asked to start something on Windows from a command line) Here is some example code:
sub long_sub { print "1\n"; &long_sub(); } $main->button( -text => "Start Long-Sub", -command => \&long_sub)->pack;
My question is: How do I keep my GUI responsive while the sub is executing?? I know under TCL/TK you needed to update your UI inside the sub, but I do not see this functionality in Perl TK.
Ideally, I would like to just have this run in the background. Any help would be appreciated.
~Hammy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Perl TK
by tye (Sage) on May 10, 2001 at 01:24 UTC | |
by HamNRye (Monk) on May 10, 2001 at 01:34 UTC | |
|
Re: Perl TK
by physi (Friar) on May 10, 2001 at 02:22 UTC | |
by HamNRye (Monk) on May 10, 2001 at 04:00 UTC | |
|
Re: Perl TK
by JojoLinkyBob (Scribe) on May 10, 2001 at 04:45 UTC | |
by HamNRye (Monk) on May 10, 2001 at 21:28 UTC | |
by JojoLinkyBob (Scribe) on May 11, 2001 at 00:37 UTC |