eymlo / python-escpos

Automatically exported from code.google.com/p/python-escpos
GNU General Public License v3.0
1 stars 0 forks source link

align left and right on the same line #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use Epson TM-T20
2. execute the following code
3.

What is the expected output? What do you see instead?
I would like to format a line to begin on the left with some words ("article" 
in my example) and then align on the right to write the price (15.00 € here)

What version of the product are you using? On what operating system?
python-escpos 1.0-1 on ubuntu 13.10

Please provide any additional information below.

code :
Epson.set("LEFT", "A", "", 1, 1)
Epson.text("Article 1")
Epson.set("RIGHT", "A", "", 1, 1)
Epson.text("15.00 \xd5")
Epson.text("\n")

Original issue reported on code.google.com by shu...@gmail.com on 15 May 2014 at 10:29

GoogleCodeExporter commented 9 years ago
"What do you see instead?"
The first "set" is OK but the second one seems to be ignored.
More generally it seems that it allows only 1 "set" per line.

Original comment by shu...@gmail.com on 16 May 2014 at 6:18