表示 TSPL 的 QR 码条形码的类。 更多...
Public 成员函数 | |
__init__ (self, Optional[Points] start=None, Optional[str] data=None, Optional[List[List[Union[QRCodeManualEncodingEnum, str]]]] manually_encoded_data=None) | |
初始化 QRBarcode 类的新实例。 | |
str | __str__ (self) |
返回一个可以发送到印表机的字符串。 | |
Public 属性 | |
start | |
data | |
data_manually_encoded | |
![]() | |
data_manually_encoded | |
mask | |
model | |
error_correction | |
cell_size | |
![]() | |
start | |
data | |
ruler | |
rotation | |
额外继承的成员函数 | |
![]() | |
IPoint | start |
str | data |
List | data_manually_encoded [List[str]] |
QRCodeMaskEnum | mask |
QRCodeModelEnum | model |
QRCodeErrorCorrectionEnum | error_correction |
ICellSquare | cell_size |
![]() | |
IPoint | start |
str | data |
![]() | |
IRuler | ruler |
![]() | |
RotateEnum | rotation |
![]() | |
ICellSquare | cell_size |
表示 TSPL 的 QR 码条形码的类。
该类继承自 AQRBarcode,并提供了在 TSPL 中初始化和描述 QR 码条形码的功能。
LabelMaker.TSPL.QRBarcode.QRBarcode.__init__ | ( | self, | |
Optional[Points] | start = None, | ||
Optional[str] | data = None, | ||
Optional[ List[List[Union[QRCodeManualEncodingEnum, str]]] ] | manually_encoded_data = None ) |
初始化 QRBarcode 类的新实例。
start | QR 码的起始点。 |
data | 要编码在 QR 码中的数据。 |
manually_encoded_data | QR 码的手动编码数据点数组。 |
str LabelMaker.TSPL.QRBarcode.QRBarcode.__str__ | ( | self | ) |
返回一个可以发送到印表机的字符串。
该方法生成 QRBarcode 实例的字符串表示形式,已格式化并准备好发送到印表机。字符串包括所有在 TSPL 中打印所需的命令和数据。
LabelMaker.TSPL.QRBarcode.QRBarcode.data |
LabelMaker.TSPL.QRBarcode.QRBarcode.data_manually_encoded |
LabelMaker.TSPL.QRBarcode.QRBarcode.start |