in reply to Re: Perl Tk Asynchronous Progress Updates
in thread Perl Tk Asynchronous Progress Updates

Thanks, but my problem is not in using the progressbar widget (I can do this successfully), but in making the callback which updates it execute asynchronously. My update function is more complicated than a simple for loop (as in your example) and takes a while to run (so I need the application to be responsive in the mean time).
  • Comment on Re^2: Perl Tk Asynchronous Progress Updates

Replies are listed 'Best First'.
Re^3: Perl Tk Asynchronous Progress Updates
by Khen1950fx (Canon) on Jul 02, 2013 at 04:14 UTC
    The example that I gave you can be used with threads ideally, eg., using the button in each of your threads. It shouldn't detract from your application's responsiveness. Yes, you'll need to understand threads:-).

      I see. I was hoping to avoid threads, but I guess I might have to end up using them after all. I suppose this means I will have to share data between them using threads::share in order to update the progress widget part of the main thread.

      thanks for the advice,

      Hermes