[PyQt] Basic thread question

Florian Bruhin me at the-compiler.org
Fri Sep 29 21:17:55 BST 2017


On Fri, Sep 29, 2017 at 08:04:36PM +0000, Phil wrote:
> On 29/09/17 21:16, Florian Bruhin wrote:
> > 
> > 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.
> 
> Thank you Florian and Kyle for your replies.
> 
> I had a look the QSerialPort documentation but couldn't make much sense of
> it at the time and so used pyserial instead. I should search for a
> QSerialPort example.

FWIW a friend of mine wrote this recently:
https://github.com/mzollin/cocktailmixer/blob/master/hw_emulator.py#L55-L94

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/c9eb246a/attachment.sig>


More information about the PyQt mailing list