UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.TSPL.Barcode1D.Barcode1D Class Reference

A class representing a 1D barcode for TSPL. More...

Inheritance diagram for LabelMaker.TSPL.Barcode1D.Barcode1D:
LabelMaker.Interfaces.IBarcode1D.ABarcode1D LabelMaker.Interfaces.IBarcode1D.IBarcode1D LabelMaker.Interfaces.IBarcode1D.IBarcode1DProperties LabelMaker.Interfaces.ISettings.IRotation LabelMaker.Interfaces.IBarcode1D.IBarcodeType1D

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 Attributes

 barcode_type
 
- Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.ABarcode1D
 barcodes
 
 barcode_type
 
 ruler
 
 bar_widths
 
 print_human_readable
 
 rotation
 

Additional Inherited Members

- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.IBarcode1D
List barcodes [IBarcodeItem]
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.IBarcode1DProperties
IRuler ruler
 
IBarWidths bar_widths
 
bool print_human_readable
 
- Static Public Attributes inherited from LabelMaker.Interfaces.ISettings.IRotation
RotateEnum rotation
 
- Static Public Attributes inherited from LabelMaker.Interfaces.IBarcode1D.IBarcodeType1D
BarcodeTypeEnum1D barcode_type
 

Detailed Description

A class representing a 1D barcode for TSPL.

This class inherits from ABarcode1D and provides functionality for initializing and describing 1D barcodes in TSPL.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.TSPL.Barcode1D.Barcode1D.__init__ ( self,
Optional[IBarcodeItem] barcode = None )

Initializes a new instance of the Barcode1D class.

Parameters
barcodeThe barcode item to be used for initialization.
Returns
A new instance of Barcode1D.

Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarcode1D.

Member Function Documentation

◆ __str__()

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.

Returns
A string description of the Barcode1D instance.

Reimplemented from LabelMaker.Interfaces.IBarcode1D.ABarcode1D.

Member Data Documentation

◆ barcode_type

LabelMaker.TSPL.Barcode1D.Barcode1D.barcode_type

The documentation for this class was generated from the following file: