Mercurial > hg > zebra
annotate README @ 20:8333c196accb
Updated platforms package metadata
author | Ben Croston <ben@croston.org> |
---|---|
date | Wed, 17 Aug 2011 21:44:54 +0100 |
parents | 777602a0da24 |
children | 20f6df6d3f42 |
rev | line source |
---|---|
0 | 1 ============ |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
2 Zebra-0.0.3a |
0 | 3 ============ |
4 | |
5 Usage: | |
6 | |
7 :: | |
8 | |
10 | 9 from zebra import zebra |
10 | |
16 | 11 z = zebra( [queue] ) |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
12 Constructor with optional printer queue |
0 | 13 |
14 z.getqueues() | |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
15 Return a list containing available printer queues |
0 | 16 |
16 | 17 z.setqueue( queue ) |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
18 Set the printer queue |
0 | 19 |
16 | 20 z.setup( direct_thermal=None, label_height=None, label_width=None ) |
21 Set up the label printer. Parameters are not set if they are None. | |
22 direct_thermal - True if using direct thermal labels | |
23 label_height - tuple (label height, label gap) in dots | |
24 label_width - in dots | |
0 | 25 |
16 | 26 z.store_graphic( name, filename ) |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
27 Store a .PCX file on the label printer |
16 | 28 name - name to be used on printer |
29 filename - local filename | |
30 | |
31 z.output( commands ) | |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
32 Output EPL2 commands to the printer |
16 | 33 |
18 | 34 Note: |
35 | |
36 - On Mac and *nix, install the printer as a Raw printer, not a Zebra one. | |
37 If you are on a Linux or MacOSX machine using CUPS, you may need to set up a | |
38 printer queue using the admin panel at http://localhost:631 |