[PyQt] Basic thread question

Florian Bruhin me at the-compiler.org
Fri Sep 29 12:16:52 BST 2017


On Fri, Sep 29, 2017 at 10:01:57AM +0000, Phil wrote:
> 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?

While you can use PySerial in a thread (as long as you don't directly
manipulate the GUI from that thread), the easier alternative is probably to use
Qt's QSerialPort module which does the same kind of thing but non-blocking.

Florian

-- 
https://www.qutebrowser.org  | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170929/5b1f9167/attachment.sig>


More information about the PyQt mailing list