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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |