mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-29 14:16:55 +00:00
Update label.md
This commit is contained in:
parent
36c0c361ab
commit
92b592857e
@ -38,7 +38,7 @@ class MyLabelPrinter(LabelPrintingMixin, IntegrationPluginBase):
|
|||||||
PLUGIN_SLUG = "mylabel"
|
PLUGIN_SLUG = "mylabel"
|
||||||
PLUGIN_TITLE = "A dummy printer"
|
PLUGIN_TITLE = "A dummy printer"
|
||||||
|
|
||||||
def print_label(self, label):
|
def print_label(self, label, **kwargs):
|
||||||
"""
|
"""
|
||||||
Send the label to the printer
|
Send the label to the printer
|
||||||
|
|
||||||
@ -46,7 +46,10 @@ class MyLabelPrinter(LabelPrintingMixin, IntegrationPluginBase):
|
|||||||
label: A PIL (pillow) Image file
|
label: A PIL (pillow) Image file
|
||||||
"""
|
"""
|
||||||
|
|
||||||
printer_backend.print(label)
|
width = kwargs['width']
|
||||||
|
height = kwargs['height']
|
||||||
|
|
||||||
|
printer_backend.print(label, w=width, h=height)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user