May 2019
Intermediate to advanced
542 pages
13h 37m
English
The final piece of this application will be a HashManager object. The job of this object is to take the form output, locate the files to be hashed, and then start up a HashRunner object for each file.
It will begin like this:
class HashManager(qtc.QObject): finished = qtc.pyqtSignal() def __init__(self): super().__init__() self.pool = qtc.QThreadPool.globalInstance()
We've based the class on QObject so that we can define a finished signal. This signal will be emitted when all of the runners have completed their tasks.
In the constructor, we're creating our QThreadPool object. Rather than creating a new object, however, we're using the globalInstance() static method to access the global thread pool object that already ...
Read now
Unlock full access