[PyQt] Thermal Printer on QPrinter
Eduardo Willians
edujurista at gmail.com
Mon Jan 19 18:33:50 GMT 2009
Well, I'm trying to config a thermal printer (bematech[1]) with 79mm
of paper width (72mm of printing capacity) and continous feed. But is
not working correctly.
Here is untill I got:
<code>
app = QApplication(sys.argv)
printer=QPrinter()
printer.setFullPage(True)
printer.setPaperSource(printer.Auto)
doc=QTextDocument("Hello World!")
doc.print_(printer)
</code>
printer.setPageSize(printer...) method produces no diference, except
if using "printer.Custom" that neither works correctly.
Thanks.
Eduardo Willians
[1] http://www.bematech.com.br/produtos/minimp2100th.asp
More information about the PyQt
mailing list