Generic worker for QThreadpools
Project description
qt Worker
A generic worker class for QThreadpool use.
The following snippet shows the basic usecase
from qtworker import Worker
self.pool = QThreadpool()
worker = Worker(function, *args, **kwargs)
worker.signals.started.connect(self.handle_start)
worker.signals.result.connect(self.handle_result)
worker.signals.error.connect(self.handle_error)
worker.signals.finished.connect(self.handle_cleanup)
self.pool.start(worker)
Todo: with full context
setup
install the package via pip:
pip install qtworker
The full documentation can be found under qtworker documentation The source code can be found under qtworker repository
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qtworker-1.0.2.tar.gz
(3.2 kB
view hashes)