comparison zebra.py @ 22:117c2aac83e5

-
author Ben Croston
date Mon, 29 Aug 2011 19:33:48 +0100
parents a9dacd180597
children fc1a7cf3f92c
comparison
equal deleted inserted replaced
21:ebbc10a4e362 22:117c2aac83e5
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2
3 import subprocess
4 import os.path 2 import os.path
5 import sys 3 import sys
6 4
7 if sys.platform.lower().startswith('win'): 5 if sys.platform.lower().startswith('win'):
8 IS_WINDOWS = True 6 IS_WINDOWS = True
9 import win32print 7 import win32print
10 else: 8 else:
11 IS_WINDOWS = False 9 IS_WINDOWS = False
10 import subprocess
12 11
13 class zebra(object): 12 class zebra(object):
14 """A class to communicate with (Zebra) label printers using EPL2""" 13 """A class to communicate with (Zebra) label printers using EPL2"""
15 14
16 def __init__(self, queue=None): 15 def __init__(self, queue=None):