0
|
1 ============
|
8
|
2 Zebra-0.0.2a
|
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] )
|
|
16 - Constructor with optional printer queue
|
0
|
17
|
|
18 z.getqueues()
|
16
|
19 - Return a list containing available printer queues
|
0
|
20
|
16
|
21 z.setqueue( queue )
|
0
|
22 - Set the printer queue
|
|
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
|
|
27 direct_thermal - True if using direct thermal labels
|
|
28 label_height - tuple (label height, label gap) in dots
|
|
29 label_width - in dots
|
0
|
30
|
16
|
31 z.store_graphic( name, filename )
|
|
32 Store a .PCX file on the label printer
|
0
|
33
|
16
|
34 name - name to be used on printer
|
|
35 filename - local filename
|
|
36
|
|
37 z.output( commands )
|
0
|
38 - Output EPL2 commands to the printer
|
16
|
39
|