ποΈ MigrationΒΆ
From v0.3 to v1.0ΒΆ
-
+ from thermalprinter import Justify - printer.justify("L") + printer.justify(Justify.LEFT) - printer.justify("C") + printer.justify(Justify.CENTER) - printer.justify("R") + printer.justify(Justify.RIGHT)
-
+ from thermalprinter import Size - printer.size("S") + printer.size(Size.SMALL) - printer.size("M") + printer.size(Size.MEDIUM) - printer.size("L") + printer.size(Size.LARGE)
-
+ from thermalprinter import Underline - printer.underline(0) + printer.underline(Underline.OFF) - printer.underline(1) + printer.underline(Underline.THIN) - printer.underline(2) + printer.underline(Underline.THICK)
tools.print_char()βThermalPrinter.print_char():- from thermalprinter.tools import print_char - print_char("η°") + printer.print_char("η°")
tools.printer_tests()βThermalPrinter.demo():- from thermalprinter.tools import printer_tests - printer_tests() + printer.demo()
From v0.2 to v0.3ΒΆ
tools.test_char()βtools.print_char():- from thermalprinter.tools import test_char + from thermalprinter.tools import print_char - test_char("η°") + print_char("η°")
tools.testing()βtools.printer_tests():- from thermalprinter.tools import testing + from thermalprinter.tools import printer_tests - testing() + printer_tests()