Base class for handling 1D barcodes. More...
Public Member Functions | |
__init__ (self, Optional[IBarcodeItem] barcode=None) | |
Initializes a new instance of the Barcode1D class with the specified barcode item. | |
str | __str__ (self) |
Returns a string that can be sent to the printer. | |
Additional Inherited Members | |
![]() | |
barcodes | |
barcode_type | |
ruler | |
bar_widths | |
print_human_readable | |
rotation | |
![]() | |
List | barcodes [IBarcodeItem] |
![]() | |
IRuler | ruler |
IBarWidths | bar_widths |
bool | print_human_readable |
![]() | |
RotateEnum | rotation |
![]() | |
BarcodeTypeEnum1D | barcode_type |
Base class for handling 1D barcodes.
This class provides functionality for creating and managing 1D barcodes, including calculating magnification and formatting barcode data for printing.
LabelMaker.PGL.Barcode1D.Barcode1D.__init__ | ( | self, | |
Optional[IBarcodeItem] | barcode = None ) |
Initializes a new instance of the Barcode1D class with the specified barcode item.
barcode | The barcode item to be used for initialization. |
Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarcode1D.
str LabelMaker.PGL.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.
Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarcode1D.