brother_ql.models - Printer models and what they are capable of

class Model(identifier: str, min_max_length_dots: Tuple[int, int], min_max_feed: Tuple[int, int] = (35, 1500), number_bytes_per_row: int = 90, additional_offset_r: int = 0, mode_setting: bool = True, cutting: bool = True, expanded_mode: bool = True, compression: bool = True, two_color: bool = False)[source]

This class represents a printer model. All specifics of a certain model and the opcodes it supports should be contained in this class.

identifier = None

A string identifier given to each model implemented. Eg. ‘QL-500’.

min_max_length_dots = None

Minimum and maximum number of rows or ‘dots’ that can be printed. Together with the dpi this gives the minimum and maximum length for continuous tape printing.

min_max_feed = None

The minimum and maximum amount of feeding a label

additional_offset_r = None

The required additional offset from the right side

mode_setting = None

Support for the ‘mode setting’ opcode

cutting = None

Model has a cutting blade to automatically cut labels

expanded_mode = None

Model has support for the ‘expanded mode’ opcode. (So far, all models that have cutting support do).

compression = None

Model has support for compressing the transmitted raster data. Some models with only USB connectivity don’t support compression.

two_color = None

Support for two color printing (black/red/white) available only on some newer models.

name
class ModelsManager(elements=None)[source]
DEFAULT_ELEMENTS = [Model(identifier='QL-500', min_max_length_dots=(295, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=False, cutting=False, expanded_mode=False, compression=False, two_color=False), Model(identifier='QL-550', min_max_length_dots=(295, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=False, cutting=True, expanded_mode=True, compression=False, two_color=False), Model(identifier='QL-560', min_max_length_dots=(295, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=False, cutting=True, expanded_mode=True, compression=False, two_color=False), Model(identifier='QL-570', min_max_length_dots=(150, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=False, cutting=True, expanded_mode=True, compression=False, two_color=False), Model(identifier='QL-580N', min_max_length_dots=(150, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=True, cutting=True, expanded_mode=True, compression=True, two_color=False), Model(identifier='QL-650TD', min_max_length_dots=(295, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=True, cutting=True, expanded_mode=True, compression=True, two_color=False), Model(identifier='QL-700', min_max_length_dots=(150, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=False, cutting=True, expanded_mode=True, compression=False, two_color=False), Model(identifier='QL-710W', min_max_length_dots=(150, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=True, cutting=True, expanded_mode=True, compression=True, two_color=False), Model(identifier='QL-720NW', min_max_length_dots=(150, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=True, cutting=True, expanded_mode=True, compression=True, two_color=False), Model(identifier='QL-800', min_max_length_dots=(150, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=True, cutting=True, expanded_mode=True, compression=False, two_color=True), Model(identifier='QL-810W', min_max_length_dots=(150, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=True, cutting=True, expanded_mode=True, compression=True, two_color=True), Model(identifier='QL-820NWB', min_max_length_dots=(150, 11811), min_max_feed=(35, 1500), number_bytes_per_row=90, additional_offset_r=0, mode_setting=True, cutting=True, expanded_mode=True, compression=True, two_color=True), Model(identifier='QL-1050', min_max_length_dots=(295, 35433), min_max_feed=(35, 1500), number_bytes_per_row=162, additional_offset_r=44, mode_setting=True, cutting=True, expanded_mode=True, compression=True, two_color=False), Model(identifier='QL-1060N', min_max_length_dots=(295, 35433), min_max_feed=(35, 1500), number_bytes_per_row=162, additional_offset_r=44, mode_setting=True, cutting=True, expanded_mode=True, compression=True, two_color=False)]
ELEMENTS_NAME = 'model'