1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +00:00

Actually use the barcode height and width parameters

(And reverse their order in the method signature so corrections to the
range checks don't break existing code)

check whether this is the solution for #26
This commit is contained in:
Stephan Sokolow
2014-05-22 00:45:57 -04:00
committed by Patrick Kanzler
parent 4e1f9db5c7
commit f7a2caee72
2 changed files with 9 additions and 9 deletions

View File

@@ -98,8 +98,8 @@ _SET_HRI_FONT = lambda n: GS + 'f' + n
BARCODE_FONT_A = _SET_HRI_FONT('\x00') # Font type A for HRI barcode chars
BARCODE_FONT_B = _SET_HRI_FONT('\x01') # Font type B for HRI barcode chars
BARCODE_HEIGHT = GS + 'h' + '\x64' # Barcode Height [1-255]
BARCODE_WIDTH = GS + 'w' + '\x03' # Barcode Width [2-6]
BARCODE_HEIGHT = GS + 'h' # Barcode Height [1-255]
BARCODE_WIDTH = GS + 'w' # Barcode Width [2-6]
#NOTE: This isn't actually an ESC/POS command. It's the common prefix to the
# two "print bar code" commands: