Added SVG text printing to Python demo program, to match C++ and Java demo programs.
This commit is contained in:
parent
b0123fee3d
commit
b6b2bddb59
|
@ -40,6 +40,7 @@ def do_basic_demo():
|
||||||
errcorlvl = qrcodegen.QrCode.Ecc.LOW # Error correction level
|
errcorlvl = qrcodegen.QrCode.Ecc.LOW # Error correction level
|
||||||
qr = qrcodegen.QrCode.encode_text(text, errcorlvl)
|
qr = qrcodegen.QrCode.encode_text(text, errcorlvl)
|
||||||
print_qr(qr)
|
print_qr(qr)
|
||||||
|
print(qr.to_svg_str(4))
|
||||||
|
|
||||||
|
|
||||||
def do_variety_demo():
|
def do_variety_demo():
|
||||||
|
|
Loading…
Reference in New Issue