Commit Graph

35 Commits

Author SHA1 Message Date
Patrick Kanzler 2676a802bd
refactor wildcard-import in printer.py 2016-06-19 12:52:15 +02:00
Patrick Kanzler 6697922b74 refactor PEP8 and code style 2016-06-19 12:30:57 +02:00
Patrick Kanzler e814396bd8 refactor: simplified expressions, remove unused import 2016-06-19 12:30:36 +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 6b445b3fb1 update docstrings per QuantifiedCode suggestions 2016-04-06 21:05:32 +10:00
Michael Billington b45afbb297 add implementation of GS v 0, GS ( L and GS *.
- ported test cases for EscposImage class, copied over 1px and 2px test images from escpos-php
- added test cases over image print function
- updated QR tests to also include image output check
- updated CLI to match new image function options
2016-04-06 07:34:19 +10:00
Patrick Kanzler 1ee657a750
REFACTOR remove wildcard-import from escpos in printer 2016-04-02 15:33:24 +02:00
davisgoglin ee223670bf Attempt to flush before quitting 2016-03-28 09:58:42 -07:00
Patrick Kanzler 6b56de67a7 use unicode_literals everywhere 2016-03-08 20:07:16 +01:00
Patrick Kanzler 7005ba5899 DOC change type of msg for _raw to bytes 2016-03-08 20:07:16 +01:00
Patrick Kanzler 18518fa901 semiFIX image-printing (still broken) 2016-03-08 20:07:16 +01:00
Patrick Kanzler 4cfc4fd564 DOC show inheritance of printer-objects in documentation 2016-03-08 20:06:38 +01:00
Dean Rispin b7c6edc9e1 Add optional timeout variable for printer network connections 2016-02-29 09:09:11 -08:00
Patrick Kanzler ae37de2577 DOC improve doc on network printing 2016-01-17 16:00:03 +01:00
Patrick Kanzler 41c6afd3b8 REFACTOR replace % op with format were it is easy 2016-01-08 03:43:33 +01:00
Patrick Kanzler f25521f22f REFACTOR fix minor PEP8 and similar mistakes 2016-01-08 03:34:14 +01:00
Thomas van den Berg 598c893943 add function to print full images including resizing and fix band printing 2016-01-08 02:46:21 +01:00
Davis Goglin 9159aafd18 IMPROVE use sendall instead of send in network-printer 2016-01-08 01:56:06 +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
Christoph Heuel 577de10cb4 Merge remote-tracking branch 'faulab/fix-pc1252' 2015-12-12 17:10:05 +01:00
Christoph Heuel 8fd05eb02b Add flush function
* Flushing the file will cause the driver to flush the cache and print
* the whole buffer.
2015-11-29 16:03:56 +01:00
Patrick Kanzler 0dacc35d94 DOC, IMPROVE improve docstrings and add abstract method _raw to Escpos 2015-11-27 23:13:48 +01:00
Patrick Kanzler 07d8e073ae REFACTOR style and PEP8, fixes #66 2015-11-27 23:13:35 +01:00
Hark cd5969e843 Prevent crash when using libusb0 printers 2015-09-04 22:48:58 +01:00
Christoph Heuel e23ce9bfc2 Merge remote-tracking branch 'origin/master' into merge/upstream/master 2015-08-27 23:37:44 +02:00
ldos f0f84e1215 Extended params for serial printers
Update printer.Serial() constructor and its open() method to extend serial params.
Backwards compatible, no client modifications needed.
2015-07-04 17:23:31 +02:00
Manuel F Martinez 9550ad1068 Fixed License version mismatch 2015-06-10 16:28:27 -07:00
Christoph Heuel dd228c9fda Add text wrapping
* The base class supports to give columns, how much it should wrapped.
* This is meant for longer text.
* The special instances need to initialize the super class with the
* columns
2015-06-04 14:11:11 +02:00
Christoph Heuel b99c076bae Fix for string operation
* With Python version 3 data and text are treated different. Convert the
* text accordingly.
2015-05-19 02:52:55 +02:00
Christoph Heuel afc6834082 After running 2to3 tool 2015-05-07 20:54:32 +02:00
Manuel F Martinez 708f7e97d1 fixed code tabulators 2014-05-20 23:50:06 -07:00
Manuel F Martinez f6f1a4278f Fixed tabs and added charcode tables 2014-05-20 22:15:54 -07:00
Manuel F Martinez c6ee2f6338 Added ability to print from a generic file 2013-04-12 14:04:48 -07:00
Manuel F Martinez 69cea54818 Added proper installer 2013-03-13 23:22:43 -07:00