I test this one, looks it work but i don’t know where is the result and how to save it
if method == 'basic':
# Simple factory, just a set of rects.
factory = qrcode.image.svg.SvgImage
elif method == 'fragment':
# Fragment factory (also just a set of rects)
factory = qrcode.image.svg.SvgFragmentImage
# Combined path factory, fixes white space that may occur when zooming
factory = qrcode.image.svg.SvgPathImage
img = qrcode.make('Some data here', image_factory=factory)
Sorry, I had to read it properly again. However, I couldn’t figure out why the first line of the import shows invalid syntax.
Where is the qrcode module installed? I’m sorry that this is a fundamental question.
Thanks for your help!
If I remember correctly, Six should be a Python module that attempts to render scripts written in Python 2.7 and 3.x+ better compatible. The entire module should be contained within a single Python file. As long as you copy it to a directory that Rhino loads by default or even to your own project/module, you should be able to import from it. You can get it on GitHub.
I have incompatible libraries - I am stuck on 3.8 for the new day job, but at least I have f-strings and type annotations. Looking forward to structural pattern matching in 3.10 if I ever get there !!!