跳至内容
wiki
用户工具
登录
站点工具
搜索
工具
显示页面
修订记录
导出 PDF
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您在这里:
start
»
linux
»
python
»
python-escpos
您的足迹:
linux:python:python-escpos
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== python-escpos ====== https://github.com/mosquito/python-escpos 用python实现控制小票机打印。 <code python> from escpos import * """ Seiko Epson Corp. Receipt Printer M129 Definitions (EPSON TM-T88IV) """ Epson = escpos.Escpos(0x04b8,0x0202,0) Epson.text("Hello World") Epson.image("logo.gif") Epson.barcode Epson.barcode('1324354657687','EAN13',64,2,'','') Epson.cut() </code> <code python> with EscposIO(printer.Network('192.168.1.87', port=9100)) as p: p.set(font='a', codepage='cp1251', size='normal', align='center', bold=True) p.printer.set(align='center') p.printer.image('logo.gif') p.writelines('Big line\n', font='b') p.writelines(u'Привет', color=2) p.writelines(u'BIG TEXT', size='2x') # After exit of with, printer will cut the paper </code>
linux/python/python-escpos.txt
· 最后更改: 2023/03/17 10:12 由
127.0.0.1
页面工具
显示页面
修订记录
反向链接
导出 PDF
回到顶部