looking for some solutions? You are welcome.

SOLVED: how to solve this TypeError: str() takes at most 1 argument (2 given)

raghava:

Here in my sample program,i am using the Epson printer to generate the bill but i got this type error when i print the text hello.Can any one please help me how to solve this error.

given below is my code:

from escpos import printer
Epson = printer.Usb(0x154f,0x154f,0,0x81,0x02)
Epson.text("hello")
Epson.qr("You can readme from your smartphone")
# Cut paper
Epson.cut()



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent