Mercurial > hg > zebra
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:3cad40fda053 | 17:a9dacd180597 |
---|---|
1 ============ | 1 ============ |
2 Zebra-0.0.2a | 2 Zebra-0.0.3a |
3 ============ | 3 ============ |
4 | 4 |
5 Note: | 5 Note: |
6 | 6 |
7 - Mac OSX may already be supported but has not been tested | 7 - Mac OSX may already be supported but has not been tested |
11 :: | 11 :: |
12 | 12 |
13 from zebra import zebra | 13 from zebra import zebra |
14 | 14 |
15 z = zebra( [queue] ) | 15 z = zebra( [queue] ) |
16 - Constructor with optional printer queue | 16 Constructor with optional printer queue |
17 | 17 |
18 z.getqueues() | 18 z.getqueues() |
19 - Return a list containing available printer queues | 19 Return a list containing available printer queues |
20 | 20 |
21 z.setqueue( queue ) | 21 z.setqueue( queue ) |
22 - Set the printer queue | 22 Set the printer queue |
23 | 23 |
24 z.setup( direct_thermal=None, label_height=None, label_width=None ) | 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. | 25 Set up the label printer. Parameters are not set if they are None. |
26 | |
27 direct_thermal - True if using direct thermal labels | 26 direct_thermal - True if using direct thermal labels |
28 label_height - tuple (label height, label gap) in dots | 27 label_height - tuple (label height, label gap) in dots |
29 label_width - in dots | 28 label_width - in dots |
30 | 29 |
31 z.store_graphic( name, filename ) | 30 z.store_graphic( name, filename ) |
32 Store a .PCX file on the label printer | 31 Store a .PCX file on the label printer |
33 | |
34 name - name to be used on printer | 32 name - name to be used on printer |
35 filename - local filename | 33 filename - local filename |
36 | 34 |
37 z.output( commands ) | 35 z.output( commands ) |
38 - Output EPL2 commands to the printer | 36 Output EPL2 commands to the printer |
39 | 37 |