How do you get a flexible graphical interface if your code works with the infinte loop? Pyqt

If you have a function that sequentially runs an endless loop in the background, how will your GUI ever react? It waits for the loop to complete, and this makes the interface useless. How to solve it in PyQT?

+5
source share
2 answers

Use streams.

In Qt, they use something called Signals and Slots . I have not used Qt since college, but there are many good resources here:

PyQt Wiki: Threading, _Signals_and_Slots

. SO: Threading PyQt: Qt Python?

Python - PyQt

+4
0

All Articles