Skip to content

Commit

Permalink
right margin print fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MooVx committed May 3, 2023
1 parent e0a4c75 commit cf78767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dymoprint/dymo_print_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def merge_render(self,bitmaps):

class DymoPrinterServer:
@staticmethod
def print_label(label_bitmap, margin=56, tape_size: int = 12):
def print_label(label_bitmap, margin=56*2, tape_size: int = 12):
"""
Prints a label using a Dymo labeler object.
Expand Down
2 changes: 1 addition & 1 deletion src/dymoprint/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def update_label_render(self, label_bitmap):
def print_label(self):
try:
self.print_server.print_label(
self.label_bitmap, self.margin.value())
self.label_bitmap, self.margin.value()*2)
except RuntimeError as err:
QMessageBox.warning(self, "Printing Failed!", f"{err}")
except USBError as err:
Expand Down

0 comments on commit cf78767

Please sign in to comment.