in reply to Re: How to run 2 buttons in parallel in Perl/Tk
in thread How to run 2 buttons in parallel in Perl/Tk

Hi Zentara, thanks for your answer, again. May I know how do people usually do if they want to kick run numerous job together? Seems that the treads method not suitable here, and I doubt to switch to Gtk2 now since my code now is pretty done except for this "RunAll" button :(

  • Comment on Re^2: How to run 2 buttons in parallel in Perl/Tk

Replies are listed 'Best First'.
Re^3: How to run 2 buttons in parallel in Perl/Tk
by zentara (Cardinal) on Jul 01, 2014 at 08:50 UTC
    You can use threads made before any gui code is called, and send commands to be eval'd by them thru threads:shared variables. See Tk-with-worker-threads

    The alternative, is to fork off your parallel processes, and that is the way it was originally done before the coming of perl threads.


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh