[PyQt] printing with pyqt5
Florian Bruhin
me at the-compiler.org
Tue Nov 14 05:30:41 GMT 2017
Hi,
On Mon, Nov 13, 2017 at 07:55:19PM -0700, prisley wrote:
> I tried to print in Tkinter and found I could not do it. So I am
> investigating PyQt5 as I heard that it supports usb printing operations. But
> I am not finding documentation for that issue. If PyQt5 can not support
> printing then I will look elsewhere like QT. I am hoping that PyQt5 will do
> it and am asking for your comments on how to proceed.
> Thanks for you input.
> Peter
PyQt is a wrapper on top of Qt, so it supports almost anything Qt does.
This does however mean that you'll need to read some C++ documentation and then
do the same thing from Python.
As for printing, the QPrinter class is probably a good place to start:
http://doc.qt.io/qt-5/qprinter.html
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/20171114/b1daa530/attachment.sig>
More information about the PyQt
mailing list