Mercurial > hg > zebra
annotate 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 |
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 Note: | |
6 | |
6 | 7 - Mac OSX may already be supported but has not been tested |
0 | 8 |
9 Usage: | |
10 | |
11 :: | |
12 | |
10 | 13 from zebra import zebra |
14 | |
16 | 15 z = zebra( [queue] ) |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
16 Constructor with optional printer queue |
0 | 17 |
18 z.getqueues() | |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
19 Return a list containing available printer queues |
0 | 20 |
16 | 21 z.setqueue( queue ) |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
22 Set the printer queue |
0 | 23 |
16 | 24 z.setup( direct_thermal=None, label_height=None, label_width=None ) |
25 Set up the label printer. Parameters are not set if they are None. | |
26 direct_thermal - True if using direct thermal labels | |
27 label_height - tuple (label height, label gap) in dots | |
28 label_width - in dots | |
0 | 29 |
16 | 30 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
|
31 Store a .PCX file on the label printer |
16 | 32 name - name to be used on printer |
33 filename - local filename | |
34 | |
35 z.output( commands ) | |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
16
diff
changeset
|
36 Output EPL2 commands to the printer |
16 | 37 |