235 Commits

Author SHA1 Message Date
Patrick Kanzler
7b18afec75 Merge pull request #125 from mike42/feature/native-qr-update
Implement ESC/POS QR code rendering
2016-04-03 11:37:44 +02:00
Michael Billington
f39c4227ec Implement printer-side rendering of QR codes for printers that support it.
Expand settings on escpos.qr to include ec, size,
model and 'native' (send image or send esc/pos QR command).

Default is set as native=False, so existing code will continue to
render QR codes as images.
2016-04-03 13:55:52 +10:00
Patrick Kanzler
bf3012b882 DOC fix example in readme
Example in readme would print only nonsense, because a newline was missing at the end of text
2016-04-02 10:44:28 +02:00
Patrick Kanzler
68b3ec4d89 Merge pull request #121 from python-escpos/autofix/wrapped2_to3_fix
Fix "Prefer `format()` over string interpolation operator" issue
2016-04-01 21:32:36 +02:00
Cody
a236ccebe9 Migrated % string formating 2016-04-01 19:19:38 +00:00
Patrick Kanzler
1a1c032d6a Merge pull request #118 from python-escpos/improve/warning-for-image-functions
DOC add warning to the new functions in the image-API
2016-04-01 21:10:39 +02:00
Patrick Kanzler
f5a7d681eb DOC add warning to the new functions in the image-API
This part is still in flux and one should not yet rely on it.
2016-04-01 20:59:27 +02:00
Patrick Kanzler
abebf7eb99 Merge pull request #107 from DavisGoglin/improve-cli
Improve cli.py
Complete rewrite of cli.py with configurable printer
2016-04-01 20:58:07 +02:00
Davis Goglin
fca363119c Fix converting of passed bool values properly 2016-04-01 10:31:28 -07:00
Davis Goglin
8ed1441c4c Clairify config loading comments 2016-03-30 17:13:59 -07:00
Davis Goglin
062282bf47 Fix Spelling 2016-03-30 17:13:20 -07:00
Davis Goglin
3fe4589b8b Add the reset of configurations between loads 2016-03-30 17:11:05 -07:00
Davis Goglin
b9c9189ca7 Add an exception for missing configuration sections 2016-03-30 17:10:21 -07:00
Davis Goglin
5ecae9d585 Add more testing directories to .gitignore 2016-03-30 13:50:57 -07:00
Davis Goglin
39da32ca85 Define class vars first in __init__ 2016-03-30 13:38:27 -07:00
Davis Goglin
e545999aa2 Convert class methods to static 2016-03-30 13:38:03 -07:00
Davis Goglin
3017c14df2 Add future imports 2016-03-30 13:31:21 -07:00
Davis Goglin
3831665da4 Fix pylint messages 2016-03-30 13:30:44 -07:00
Davis Goglin
b6b30d7c82 Add future imports 2016-03-30 13:29:28 -07:00
Davis Goglin
39165fcb41 Fix tests I just wrote then broke 2016-03-28 15:21:16 -07:00
Davis Goglin
fd6a0e4bda Add an automatic newline for some methods 2016-03-28 15:15:53 -07:00
Davis Goglin
38b58eb39a Remove executable flag so we hopefully get code coverage 2016-03-28 15:07:16 -07:00
Davis Goglin
cabb2c930a Add docstring to TestCLI class 2016-03-28 15:01:40 -07:00
Davis Goglin
0c3f273fa1 Clear test dir 2016-03-28 14:57:06 -07:00
Davis Goglin
76f300ea18 Fix text argument 2016-03-28 14:51:48 -07:00
Davis Goglin
f504d2dc15 Allow config path to be passed 2016-03-28 11:49:12 -07:00
Davis Goglin
5a2ca10874 Add docstring 2016-03-28 11:19:09 -07:00
Davis Goglin
8101e1ec9f Reduce many lines of code to a loop 2016-03-28 11:16:37 -07:00
Davis Goglin
1a000d29fd Add a newline for text demo 2016-03-28 09:58:42 -07:00
davisgoglin
28b82fb54f Fix CODE39 barcodes. Assume Code128 are the same 2016-03-28 09:58:42 -07:00
davisgoglin
ee223670bf Attempt to flush before quitting 2016-03-28 09:58:42 -07:00
davisgoglin
a445c4205a Add cut after printing demos 2016-03-28 09:58:42 -07:00
davisgoglin
00ef7f129b Add raw option when using cli 2016-03-28 09:58:42 -07:00
Davis Goglin
8c186d912d Remove EAN8 code check digit 2016-03-28 09:58:42 -07:00
Davis Goglin
14ae1a7d89 Fix python3 barcode type b length encoding 2016-03-28 09:58:42 -07:00
Davis Goglin
ca3b4665a2 pylint changes 2016-03-28 09:58:42 -07:00
Davis Goglin
4f92247ed6 Fix no help display in python3 2016-03-28 09:58:42 -07:00
Davis Goglin
5ba751d89b Stop checking for file to be python2/3 compatible 2016-03-28 09:58:42 -07:00
Davis Goglin
8e44c5126e Remove unsued variable 2016-03-28 09:58:42 -07:00
Davis Goglin
7a58109928 Clean up per landscape 2016-03-28 09:58:42 -07:00
Davis Goglin
9b40c0860f Change error to handle strings and files instead of list 2016-03-28 09:58:42 -07:00
Davis Goglin
3ec00ae16e Remove unneeded requirements 2016-03-28 09:58:42 -07:00
Davis Goglin
7afd5e75d4 Add docstrings 2016-03-28 09:58:42 -07:00
Davis Goglin
7d74dcac00 Add demo functions 2016-03-28 09:58:42 -07:00
Davis Goglin
cdf8f6be09 Fix config loading 2016-03-28 09:58:42 -07:00
Davis Goglin
d5e3d85c4b Add documentation for config 2016-03-28 09:58:42 -07:00
Davis Goglin
2bb9756d28 Add documentation for config 2016-03-28 09:58:42 -07:00
Davis Goglin
5dc676bea7 Convert to safe load. Also now allows loading everyting pyyaml supports 2016-03-28 09:58:42 -07:00
Davis Goglin
c26c875b61 Convert ini format to yaml format. 2016-03-28 09:58:42 -07:00
Davis Goglin
39e912bef4 I guess localconfig needs future 2016-03-28 09:58:42 -07:00