Constants & enums¶
Command-set constants and the enums used for formatting, barcodes, code pages, character sets, LED modes and status types.
vkp80iii.constants ¶
Enumerations and named constants for the VKP80III command set.
Values are the raw bytes the printer expects, so an :class:enum.IntEnum
member can be passed straight through to the command builders.
Justify ¶
Bases: IntEnum
Horizontal justification (ESC a).
Source code in src/vkp80iii/constants.py
28 29 30 31 32 33 | |
Font ¶
Bases: IntEnum
Character font (ESC M / FS %).
Source code in src/vkp80iii/constants.py
36 37 38 39 40 | |
Underline ¶
Bases: IntEnum
Underline thickness (ESC -).
Source code in src/vkp80iii/constants.py
43 44 45 46 47 48 | |
PrintQuality ¶
Bases: IntEnum
Print quality / speed (GS F0, command 0x1D 0xF0).
Source code in src/vkp80iii/constants.py
51 52 53 54 55 56 | |
Barcode ¶
Bases: IntEnum
1D barcode symbologies for :func:~vkp80iii.commands.barcode.
These are the "format 2" selectors (length-prefixed form, GS k m n
d1..dn), which the library uses because it can carry the full byte
range and an explicit length.
Source code in src/vkp80iii/constants.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
HRIPosition ¶
Bases: IntEnum
Human-readable interpretation text position (GS H).
Source code in src/vkp80iii/constants.py
80 81 82 83 84 85 86 | |
HRIFont ¶
Bases: IntEnum
Font for HRI characters (GS f).
Source code in src/vkp80iii/constants.py
89 90 91 92 93 | |
QRModel ¶
Bases: IntEnum
QR Code model (GS ( k fn=165).
Source code in src/vkp80iii/constants.py
97 98 99 100 101 | |
QRErrorCorrection ¶
Bases: IntEnum
QR error-correction level (GS ( k fn=169).
Source code in src/vkp80iii/constants.py
104 105 106 107 108 109 110 111 | |
PDF417ErrorMode ¶
Bases: IntEnum
PDF417 ECC selection mode (GS ( k fn=069).
Source code in src/vkp80iii/constants.py
114 115 116 117 118 | |
AztecType ¶
Bases: IntEnum
AZTEC symbol type (GS ( k fn=P65).
Source code in src/vkp80iii/constants.py
121 122 123 124 125 | |
DataMatrixEncoding ¶
Bases: IntEnum
DataMatrix encoding scheme (GS ( k fn=Q65).
Source code in src/vkp80iii/constants.py
128 129 130 131 132 133 134 135 136 137 | |
CharsetCountry ¶
Bases: IntEnum
International character set (ESC R). Common subset.
Source code in src/vkp80iii/constants.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
CodePage ¶
Bases: IntEnum
Character code table (ESC t). Common subset of the supported pages.
The full set depends on the code pages installed on the device; selecting a missing page leaves the current one in use.
Source code in src/vkp80iii/constants.py
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | |
StatusType ¶
Bases: IntEnum
Argument n for the real-time status request (DLE EOT n).
Source code in src/vkp80iii/constants.py
177 178 179 180 181 182 183 184 | |
LedMode ¶
Bases: IntEnum
Bezel RGB LED bar mode (FS B, 0x1C 0x42).
Source code in src/vkp80iii/constants.py
188 189 190 191 192 193 194 | |
LedFlashFreq ¶
Bases: IntEnum
Flash frequency for :data:LedMode.FLASH.
Source code in src/vkp80iii/constants.py
197 198 199 200 201 202 203 204 205 206 207 208 209 | |