Mercurial > hg > zebra
diff zebra.py @ 2:ad9d9bf61243
Change direct transfer to direct thermal
author | Ben Croston <ben@fuzzyduckbrewery.co.uk> |
---|---|
date | Fri, 12 Aug 2011 21:52:11 +0100 |
parents | 21c3229ed401 |
children | 0687a6666873 |
line wrap: on
line diff
--- a/zebra.py Fri Aug 12 21:48:00 2011 +0100 +++ b/zebra.py Fri Aug 12 21:52:11 2011 +0100 @@ -53,9 +53,9 @@ def setqueue(self, queue): self.queue = queue - def setup(self, direct_transfer=None, label_height=None, label_width=None): + def setup(self, direct_thermal=None, label_height=None, label_width=None): commands = '\n' - if direct_transfer: + if direct_thermal: commands += ('OD\n') if label_height: commands += ('Q%s,%s\n'%(label_height[0],label_height[1])) @@ -76,7 +76,7 @@ z = zebra() print 'Printer queues found:',z.getqueues() z.setqueue('zebra_python_unittest') - z.setup(direct_transfer=True, label_height=(406,32), label_width=609) # 3" x 2" direct transfer label + z.setup(direct_thermal=True, label_height=(406,32), label_width=609) # 3" x 2" direct thermal label z.store_graphic('logo','logo.pcx') label = """ N