Commit Graph

27 Commits

Author SHA1 Message Date
Patrick Kanzler 6697922b74 refactor PEP8 and code style 2016-06-19 12:30:57 +02:00
Patrick Kanzler 910f2fbf2f add with-statement
* with imported from mosquito (adaption of the code in 86a3e8dfb257e3af0ec141ee5d97717501d6e945 by @mosquito)
* encoding of file to utf-8
* added rudimentary test for with
* implement close function for all printers
2016-06-17 23:34:51 +02:00
Michael Billington 44c79eaf11 Remove trailing semicolons
sed -i 's/;$//' escpos/*.py
2016-04-07 22:06:14 +10: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 80f6200915
FEATURE disable panel buttons 2016-03-10 16:01:35 +01:00
Patrick Kanzler 5d5412ba73 REFACTOR use bytes in constants-section
adds six for cross-version int/byte-conversion
2016-03-08 20:07:16 +01:00
Patrick Kanzler 18518fa901 semiFIX image-printing (still broken) 2016-03-08 20:07:16 +01:00
Davis Goglin 39d1c1d587 Format barcode types 2016-03-08 09:16:35 -08:00
Davis Goglin dbb0081287 Split CODE128 into it's character sets 2016-03-08 08:45:49 -08:00
Davis Goglin 68a9dcc47b Typo fix GS_128 -> GS-128 2016-03-08 08:12:51 -08:00
Davis Goglin 7f921c667b Fix barcode type B codes 2016-03-07 17:39:12 -08:00
Davis Goglin d888a39b6f Fix typo, CODEBAR -> CODABAR 2016-03-07 16:22:13 -08:00
davisgoglin 60bc6b7d5c Add barcode types for function type B, reorganize existing types 2016-03-06 20:04:58 -08:00
Dean Rispin 8d00e63b87 Add width/height multiplier support, upsidedown text and text smoothing 2016-03-01 10:05:52 -08:00
Dean Rispin 7c98de6727 ADD inverted printing to set method 2016-02-29 20:56:45 +01:00
Stephan Sokolow 050419f117 Apply the cash drawer fix detailed in Issue 10 on the Google Code repo.
https://code.google.com/p/python-escpos/issues/detail?id=10
fixes #10
2016-01-08 02:46:21 +01:00
Stephan Sokolow f7a2caee72 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
2016-01-08 02:46:21 +01:00
Stephan Sokolow 4e1f9db5c7 Make the structure of the ESC/POS commands less opaque
(The commands are intended to be readable by people who grew up with ANSI
 escape codes so represent them that way in the code)
2016-01-08 02:46:12 +01:00
Patrick Kanzler 8b8ca76af6 DOC improve the documentation
* make API-doc more legible
* improve comments in methods
2016-01-05 23:14:35 +01:00
Christoph Heuel 06f2e1e731 Merge remote-tracking branch 'faulab/refactoring-and-documentation' 2015-12-12 18:11:58 +01:00
Patrick Kanzler c1d985eeaf FIX constant definition for PC1252
* fixes #40
* according to the table http://content.epson.de/fileadmin/content/files/RSD/downloads/escpos.pdf
2015-11-28 14:22:54 +01:00
Patrick Kanzler 07d8e073ae REFACTOR style and PEP8, fixes #66 2015-11-27 23:13:35 +01:00
Manuel F Martinez 8a3850ea64 Added quad support 2014-05-20 22:43:40 -07:00
Manuel F Martinez 34f562d64a Added density support 2014-05-20 22:31:49 -07:00
Manuel F Martinez f6f1a4278f Fixed tabs and added charcode tables 2014-05-20 22:15:54 -07:00
Manuel F Martinez a2dcd45c15 Added quad-area characters 2014-02-23 23:09:35 -08:00
Manuel F Martinez 69cea54818 Added proper installer 2013-03-13 23:22:43 -07:00