A class representing a 1D barcode for TSPL. More...
Public Member Functions | |
| __init__ (self, Optional[IBarcodeItem] barcode=None) | |
| Initializes a new instance of the Barcode1D class. | |
| __str__ (self) | |
| Returns a string that can be sent to the printer. | |
Public Member Functions inherited from LabelMaker.Interfaces.IBarcode1D.ABarcode1D | |
| __init__ (self, Optional[IBarcodeItem] barcode_item=None) | |
| str | __str__ (self) |
Public Member Functions inherited from LabelMaker.Interfaces.IBarcode1D.IBarcode1D | |
| str | __str__ (self) |
Additional Inherited Members | |
Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.ABarcode1D | |
| barcode_type = BarcodeTypeEnum1D.NOT_DEFINED | |
| ruler = None | |
| bar_widths = None | |
| bool | print_human_readable = False |
| rotation = RotateEnum.NONE | |
Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.IBarcode1D | |
| List | barcodes [IBarcodeItem] |
A class representing a 1D barcode for TSPL.
This class inherits from ABarcode1D and provides functionality for initializing and describing 1D barcodes in TSPL.
| LabelMaker.TSPL.Barcode1D.Barcode1D.__init__ | ( | self, | |
| Optional[IBarcodeItem] | barcode = None ) |
| LabelMaker.TSPL.Barcode1D.Barcode1D.__str__ | ( | self | ) |
Returns a string that can be sent to the printer.
This method generates a string representation of the Barcode1D instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing in TSPL.