Skip to content

Commit a8d4094

Browse files
author
David Robinson
committed
Add Print Quality Option
Required for QL-720NW
1 parent 5fb92df commit a8d4094

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,17 @@ Make sure to end with the print page command, signifying the end of a label.
4343
printjob.print_page(<cut_setting>)
4444

4545
### Template Printing
46-
Create your template and upload it to the printer. After creating a BrotherLabel object, call template_mode() to set the printer to template mode, and then use the template commands to fill in your label.
46+
Create your template and upload it to the printer. After creating a BrotherLabel object, call template_mode() to set the printer to template mode, and then use the template commands to fill in your label. Be sure to download the P-Touch Template Tools from support.brother.com under utilities of your label printer. It has a wealth of information.
4747

4848
printjob.template_mode()
4949
printjob.template_init()
5050
printjob.choose_template(<template_number>)
5151
printjob.select_and_insert(<field_name>, <data>)
5252
printjob.select_and_insert(<field_name2>, <data2>)
5353
printjob.select_and_insert(<field_name3>, <data3>)
54+
# For QL-720NW with barcodes on label, turn on:
55+
# printjob.select_priority_print_option('on')
5456
printjob.template_print()
5557

58+
59+

brotherprint/brotherprint.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,4 +1047,22 @@ def select_and_insert(self, name, data):
10471047
self.select_obj(name)
10481048
self.insert_into_obj(data)
10491049

1050-
1050+
def select_priority_print_option(self, action):
1051+
''' Default is 0 - Priority to print speed. Set to 1 for priority to print quality.
1052+
Required for QL-720NW and barcodes.
1053+
Args:
1054+
action: on or off.
1055+
Returns:
1056+
None
1057+
Raises:
1058+
RuntimeError( on or off not selected)
1059+
'''
1060+
if action == 'on':
1061+
action = '1'
1062+
elif action == 'off':
1063+
action = '0'
1064+
else:
1065+
raise RuntimeError('Invalid action for function select_priority_print_option')
1066+
self.send('^QS'+action)
1067+
1068+

0 commit comments

Comments
 (0)