Mercurial > hg > zebra
view README @ 17:a9dacd180597
Does not work in python 2.6 after all
Tidy up
author | Ben Croston <ben@croston.org> |
---|---|
date | Mon, 15 Aug 2011 20:18:38 +0100 |
parents | 3cad40fda053 |
children | 777602a0da24 |
line wrap: on
line source
============ Zebra-0.0.3a ============ Note: - Mac OSX may already be supported but has not been tested Usage: :: from zebra import zebra z = zebra( [queue] ) Constructor with optional printer queue z.getqueues() Return a list containing available printer queues z.setqueue( queue ) Set the printer queue z.setup( direct_thermal=None, label_height=None, label_width=None ) Set up the label printer. Parameters are not set if they are None. direct_thermal - True if using direct thermal labels label_height - tuple (label height, label gap) in dots label_width - in dots z.store_graphic( name, filename ) Store a .PCX file on the label printer name - name to be used on printer filename - local filename z.output( commands ) Output EPL2 commands to the printer