用于处理一维条形码的基类。 更多...
Public 成员函数 | |
| __init__ (self, Optional[IBarcodeItem] barcode=None) | |
| 使用指定的条形码项初始化Barcode1D类的新实例。 | |
| str | __str__ (self) |
| 返回可以发送到打印机的字符串。 | |
Public 成员函数 继承自 LabelMaker.Interfaces.IBarcode1D.ABarcode1D | |
| __init__ (self, Optional[IBarcodeItem] barcode_item=None) | |
| str | __str__ (self) |
Public 成员函数 继承自 LabelMaker.Interfaces.IBarcode1D.IBarcode1D | |
| str | __str__ (self) |
额外继承的成员函数 | |
Public 属性 继承自 LabelMaker.Interfaces.IBarcode1D.ABarcode1D | |
| barcode_type = BarcodeTypeEnum1D.NOT_DEFINED | |
| ruler = None | |
| bar_widths = None | |
| bool | print_human_readable = False |
| rotation = RotateEnum.NONE | |
静态 Public 属性 继承自 LabelMaker.Interfaces.IBarcode1D.IBarcode1D | |
| List | barcodes [IBarcodeItem] |
用于处理一维条形码的基类。
此类提供了用于创建和管理一维条形码的功能,包括计算放大倍数和格式化条形码数据以便打印。
| LabelMaker.PGL.Barcode1D.Barcode1D.__init__ | ( | self, | |
| Optional[IBarcodeItem] | barcode = None ) |
使用指定的条形码项初始化Barcode1D类的新实例。
| barcode | 用于初始化的条形码项。 |
| str LabelMaker.PGL.Barcode1D.Barcode1D.__str__ | ( | self | ) |
返回可以发送到打印机的字符串。
此方法生成Barcode1D实例的字符串表示形式,格式化并准备发送到打印机。字符串包括所有打印所需的命令和数据。