Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect signal type #33

Open
stephenscollay opened this issue Jan 7, 2025 · 2 comments
Open

Incorrect signal type #33

stephenscollay opened this issue Jan 7, 2025 · 2 comments

Comments

@stephenscollay
Copy link

stephenscollay commented Jan 7, 2025

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)

@mfitzp
Copy link
Member

mfitzp commented Jan 8, 2025

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?

@stephenscollay
Copy link
Author

stephenscollay commented Jan 8, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants