表示 QR 码条形码的类。 更多...
Public 成员函数 | |
__init__ (self, IPoint start, data="", Optional[List[List[Union[int, str]]]] data_manually_encoded=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 |
表示 QR 码条形码的类。
此类继承自 AQRBarcode,并提供了用于初始化、配置和描述 QR 码条形码的功能。 QR 码条形码可以配置为自动或手动编码模式以及不同的纠错级别。
LabelMaker.PGL.QRBarcode.QRBarcode.__init__ | ( | self, | |
IPoint | start, | ||
data = "", | |||
Optional[List[List[Union[int, str]]]] | data_manually_encoded = None ) |
使用指定的起始点、数据和手动编码数据(可选)初始化 QRBarcode 类的新实例。
此构造函数使用提供的起始点、数据和可选的手动编码数据设置一个新的 QRBarcode 对象。 数据代表要在 QR 码条形码中编码的资讯。
start | QR 码的起始点。 |
data | 要在 QR 码中编码的数据。 |
data_manually_encoded | 用于 QR 码的手动编码数据点数组。 |
str LabelMaker.PGL.QRBarcode.QRBarcode.__str__ | ( | self | ) |
返回一个可以发送到印表机的字符串。
此方法生成 QRBarcode 实例的字符串表示形式,该字符串已格式化并准备发送到印表机。 字符串包括在 PGL 中打印所需的所有命令和数据。
LabelMaker.PGL.QRBarcode.QRBarcode.data |
LabelMaker.PGL.QRBarcode.QRBarcode.data_manually_encoded |
LabelMaker.PGL.QRBarcode.QRBarcode.start |