You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't matter what values were provided because, aside from some broken
range checks, your code ignores those parameters.
https://code.google.com/p/python-escpos/source/browse/escpos/escpos.py#178
(You're applying the height range check to the width value and vice-versa)
A bar width of 3 (\x03) and height of 100 (\x64) are hard-coded in constants.py
https://code.google.com/p/python-escpos/source/browse/escpos/constants.py#63
Since I just fixed it for my own use, here's the patch:
https://github.com/ssokolow/python-escpos/commit/b5f68f6895236207355efe6bc92c5b1
197948dc2
(Sorry about the different format. I fixed it after I rewrote constants.py to
acknowledge that ESC/POS is intended to take the form of human-readable
sequences similar to DOS ansi.sys escape codes.)
Original issue reported on code.google.com by
[email protected]
on 15 Apr 2014 at 8:21The text was updated successfully, but these errors were encountered: