feat: Add Web iface with QR codes
This commit is contained in:
parent
3897d37f2a
commit
2a2b5973df
10 changed files with 1293 additions and 739 deletions
|
|
@ -4,6 +4,7 @@ from math import inf
|
|||
|
||||
from brother_ql import BrotherQLRaster, create_label
|
||||
from brother_ql.backends import guess_backend, backend_factory
|
||||
from brother_ql.conversion import convert
|
||||
from pysnmp.entity.engine import SnmpEngine
|
||||
from pysnmp.hlapi import getCmd, CommunityData, UdpTransportTarget, ContextData
|
||||
from pysnmp.smi.rfc1902 import ObjectType, ObjectIdentity
|
||||
|
|
@ -43,9 +44,9 @@ class E550W(Printer):
|
|||
im = PILImage.open(io.BytesIO(label.bytes))
|
||||
|
||||
qlr = BrotherQLRaster("PT-E550W")
|
||||
create_label(
|
||||
convert(
|
||||
qlr,
|
||||
im,
|
||||
[im],
|
||||
self.__media_width_to_type(label.height),
|
||||
red=False,
|
||||
threshold=70,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue