Readme file for threading test
----------------------------------------------

This tar file contains the source files for a simple multi-threading test using python and Qt.

The example simulates a CPU-intensive task (here, just looping) which is performed in a separate
thread, using a QThread object.  A QProgressDialog object is used to report progress to the user.
Progress is sent back from the worker thread, asynchronously via a signal, to the main thread,
where it is used to update the progress dialog.

If the cancel button is pressed, this is sent again asynchronously via a signal to the worker thread,
where a flag is set to stop processing at the next break point.  Finally, a signal is again used
to let the worker thread inform the main thread that the task is finished.  This allows the progress
dialog to be closed.

This is a simple example to demonstrate the mechanism, hence there are liberal print statements
from both threads to indicate what's going on.  Hopefully this is useful for those who wish to
expand it to something more useful!

This source was made available by activityworkshop.net and is put in the public domain.
