Mercurial > hg > zebra
comparison README @ 16:3cad40fda053
Updated README
author | Ben Croston <ben@croston.org> |
---|---|
date | Mon, 15 Aug 2011 19:25:52 +0100 |
parents | 6a1963ee4aff |
children | a9dacd180597 |
comparison
equal
deleted
inserted
replaced
15:cc41931a7ded | 16:3cad40fda053 |
---|---|
10 | 10 |
11 :: | 11 :: |
12 | 12 |
13 from zebra import zebra | 13 from zebra import zebra |
14 | 14 |
15 z = zebra( [printerqueue] ) | 15 z = zebra( [queue] ) |
16 - Constructor with optional printerqueue | 16 - Constructor with optional printer queue |
17 | 17 |
18 z.getqueues() | 18 z.getqueues() |
19 - Return a list containing a list of printer queues | 19 - Return a list containing available printer queues |
20 | 20 |
21 z.setqueue( printerqueue ) | 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 printer | 25 Set up the label printer. Parameters are not set if they are None. |
26 | 26 |
27 z.store_graphic(name, filename) | 27 direct_thermal - True if using direct thermal labels |
28 - Store a graphics .PCX file on printer | 28 label_height - tuple (label height, label gap) in dots |
29 label_width - in dots | |
29 | 30 |
30 z.output(commands) | 31 z.store_graphic( name, filename ) |
32 Store a .PCX file on the label printer | |
33 | |
34 name - name to be used on printer | |
35 filename - local filename | |
36 | |
37 z.output( commands ) | |
31 - Output EPL2 commands to the printer | 38 - Output EPL2 commands to the printer |
39 |