1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-12-02 09:43:30 +00:00

formatting

This commit is contained in:
Patrick Kanzler
2023-08-10 23:29:26 +02:00
parent b1011a1ee5
commit 1b4230fdd9
17 changed files with 128 additions and 104 deletions

View File

@@ -1,5 +1,4 @@
"""Prints code page tables.
"""
"""Prints code page tables."""
import sys
@@ -19,6 +18,7 @@ from escpos.constants import (
def main():
"""Init printer and print codepage tables."""
dummy = printer.Dummy()
dummy.hw("init")
@@ -35,6 +35,7 @@ def main():
def print_codepage(printer, codepage):
"""Print a codepage."""
if codepage.isdigit():
codepage = int(codepage)
printer._raw(CODEPAGE_CHANGE + six.int2byte(codepage))