mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
formatting
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
"""Example for a flask application."""
|
||||
from flask import Flask
|
||||
|
||||
from escpos.printer import CupsPrinter
|
||||
@@ -8,6 +9,7 @@ app = Flask(__name__)
|
||||
|
||||
@app.route("/", methods=["GET"])
|
||||
def do_print():
|
||||
"""Print."""
|
||||
# p = Usb(0x04b8, 0x0e28, 0)
|
||||
p = CupsPrinter(host="localhost", port=631, printer_name="TM-T20III")
|
||||
p.text("Hello World\n")
|
||||
|
Reference in New Issue
Block a user