[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] PyQt5 QtSerialPort Error "QSocketNotifier: Invalid socket specified"
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2016-09-12 16:13:07
Message-ID: DA04EC89-10DA-47B2-A4AA-70981555D540 () riverbankcomputing ! com
[Download RAW message or body]
On 12 Sep 2016, at 5:10 pm, Dan Arbogast <arbogastdan@gmail.com> wrote:
>
> Thanks for the response Phil, I tried substituting open() in place of setOpenMode() \
> and now the output is:
> ttyUSB0
> ttyUSB1
> False
> QSocketNotifier: Can only be used with threads started with QThread
> True
> 0
> QSocketNotifier: Can only be used with threads started with QThread
> 0
>
> So now both the open() and writeData() lines show a new QSocketNotifier error.
>
> There are several examples out there for how to use QtSerialPort with C++ but \
> nothing I could find for Python. Do you know of any? I shouldn't be this hard.
It should be easy enough to port a C++ example to Python. If the two versions behave \
differently then that would suggest a PyQt bug.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic