You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
There is an issue with the return type of the progress signal in the final code example. The signal is looking for an integer: progress = pyqtSignal(int)
But the emit gives it a float type: progress_callback.emit(n*100/4)
The text was updated successfully, but these errors were encountered:
Thanks @stephenscollay
Just to let you know the type issue is now fixed. When you say "It also would be nice for the example code to demonstrate how arguments are passed through." what are you looking for exactly?
Ah fabulous. Sorry I removed that part as I wasn't sure how to word it
properly. There is currently no example of an argument and/or key word
argument being passed through to the worker in the final example given in
the Improved Qrunnables section where we are passing through the function.
I suspect someone with more coding experience would understand it better
but at least it took me a bit to get working.
Thanks for the fabulous resource.
Stephen
Tutorial: https://www.pythonguis.com/tutorials/multithreading-pyqt6-applications-qthreadpool/
Hi there,
There is an issue with the return type of the progress signal in the final code example. The signal is looking for an integer:
progress = pyqtSignal(int)
But the emit gives it a float type:
progress_callback.emit(n*100/4)
The text was updated successfully, but these errors were encountered: