mirror of
				https://github.com/inventree/inventree-docs.git
				synced 2025-10-31 12:55:37 +00:00 
			
		
		
		
	Update label.md
This commit is contained in:
		| @@ -38,15 +38,18 @@ 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 | ||||||
|          |          | ||||||
|         Arguments: |         Arguments: | ||||||
|             label: A PIL (pillow) Image file |             label: A PIL (pillow) Image file | ||||||
|         """ |         """ | ||||||
|  |          | ||||||
|  |         width = kwargs['width'] | ||||||
|  |         height = kwargs['height'] | ||||||
|  |  | ||||||
|         printer_backend.print(label) |         printer_backend.print(label, w=width, h=height) | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user