Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #110017

Re: PyQt5: is the wrapper incomplete?

From Vincent Vande Vyvre <vincent.vande.vyvre@telenet.be>
Newsgroups comp.lang.python
Subject Re: PyQt5: is the wrapper incomplete?
Date 2016-06-16 09:15 +0200
Message-ID <mailman.88.1466061365.2288.python-list@python.org> (permalink)
References <7a8f722a-f4e6-419e-ab0e-982754ad0df9@googlegroups.com> <5762522D.6060804@telenet.be>

Show all headers | View raw


Le 16/06/2016 04:54, jladasky@itu.edu a écrit :
> I am developing a data acquisition system for a custom device that communicates over USB.  On the host computer side, I am using PyQt5.4.  My Linux box has both Qt4 and Qt5 installed on it.  I assume that PyQt5.4 compiled on top of Qt5 automatically.  I'm not sure how to check that.
>
> In any case, I used PySerial to handle the USB communication.  I just noticed that Qt also has serial features.  I need to give the completed program to other users, on Windows no less.  If I can forego PySerial and use Qt's serial interface instead, it would simplify the installation.
>
> Now, the PyQt5 documentation implies that a module called QtSerial exists.  But while I can write...
>
> from PyQt5.QtWidgets import (...), or
> from PyQt5.QtGui import (...), or
> from PyQt5.QtCore import (...),
>
> ...attempting to import from PyQt5.QtSerial raises an ImportError.
>
> I've tried many variations on the spelling, and I've tried various import statements to inspect the (very large and complex) PyQt5 namespace.  I haven't found the QtSerial classes.  Are they even there?  Maybe the wrapping of the library is incomplete?
>
> Any guidance is appreciated, thanks!

On Debian, this is a separate package python3-pyqt5.qtserialport, I 
don't know for other Linux

After install you can use:

from PyQt5.QtSeriaPort import QSerialPort

Vincent

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PyQt5: is the wrapper incomplete? jladasky@itu.edu - 2016-06-15 19:54 -0700
  Re: PyQt5: is the wrapper incomplete? Vincent Vande Vyvre <vincent.vande.vyvre@telenet.be> - 2016-06-16 09:15 +0200
    Re: PyQt5: is the wrapper incomplete? jladasky@itu.edu - 2016-06-23 19:26 -0700
    Re: PyQt5: is the wrapper incomplete? jladasky@itu.edu - 2016-06-23 19:40 -0700
  Re: PyQt5: is the wrapper incomplete? Mark Summerfield <list@qtrac.plus.com> - 2016-06-16 00:22 -0700
    Re: PyQt5: is the wrapper incomplete? Mark Summerfield <list@qtrac.plus.com> - 2016-06-16 00:25 -0700

csiph-web