[PyQt] Basic thread question
Phil
phil_lor at bigpond.com
Fri Sep 29 11:01:57 BST 2017
On 29/09/17 19:44, Florian Bruhin wrote:
>>
>> Say I have a thread class like the one shown in my previous message, how do
>> I access a MainWindow widget?
>
> You can't, that's my point ;-)
OK, that confirms what I thought.
>> Are saying that QTimer is non blocking?
>
> Almost everything in Qt is, including QTimer.
> I found an example here:
> https://github.com/baoboa/pyqt5/blob/master/examples/widgets/digitalclock.py
Very good, thank you.
Now just suppose I need to transmit, or receive, a lot of serial data
using pyserial. The GUI would be blocked during the transmission. Surely
that would be candidate for a thread?
--
Regards,
Phil
More information about the PyQt
mailing list