fix comments

This commit is contained in:
Patrick Kanzler 2023-05-09 01:24:08 +02:00
parent a827bcec20
commit 618b23bc19

View File

@ -1016,14 +1016,12 @@ class Escpos(object):
if status[0] & RT_MASK_PAPER == RT_MASK_PAPER: if status[0] & RT_MASK_PAPER == RT_MASK_PAPER:
return 2 return 2
""" def target(self, type="ROLL"):
Select where to print to """Select where to print to
Print to the thermal printer by default (ROLL) or Print to the thermal printer by default (ROLL) or
print to the slip dot matrix printer if supported (SLIP) print to the slip dot matrix printer if supported (SLIP)
""" """
def target(self, type="ROLL"):
if type.upper() == "ROLL": if type.upper() == "ROLL":
self._raw(SHEET_ROLL_MODE) self._raw(SHEET_ROLL_MODE)
elif type.upper() == "SLIP": elif type.upper() == "SLIP":
@ -1031,29 +1029,26 @@ class Escpos(object):
else: else:
raise ValueError("Unsupported target") raise ValueError("Unsupported target")
"""
Eject the slip/cheque
"""
def eject_slip(self): def eject_slip(self):
"""Eject the slip/cheque"""
self._raw(SLIP_EJECT) self._raw(SLIP_EJECT)
""" def print_and_eject_slip(self):
Prints data from the buffer to the slip station and if the paper sensor is covered, """Print and eject
reverses the slip out the front of the printer far enough to be accessible to the operator.
Prints data from the buffer to the slip station and if the paper
sensor is covered, reverses the slip out the front of the printer
far enough to be accessible to the operator.
The impact station opens the platen in all cases. The impact station opens the platen in all cases.
""" """
def print_and_eject_slip(self):
self._raw(SLIP_PRINT_AND_EJECT) self._raw(SLIP_PRINT_AND_EJECT)
"""
Selects the Slip Station for all functions.
The receipt station is the default setting after the printer is initialized or
the Clear Printer (0x10) command is received
"""
def use_slip_only(self): def use_slip_only(self):
"""Selects the Slip Station for all functions.
The receipt station is the default setting after the printer
is initialized or the Clear Printer (0x10) command is received
"""
self._raw(SLIP_SELECT) self._raw(SLIP_SELECT)