forked from openlp/openlp
Opps temp file not needed
This commit is contained in:
parent
d5c1c57584
commit
329b19ef75
17
temp.py
17
temp.py
@ -1,17 +0,0 @@
|
|||||||
import qrcode
|
|
||||||
import qrcode.image.svg
|
|
||||||
|
|
||||||
method = "basic"
|
|
||||||
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
|
|
||||||
else:
|
|
||||||
# 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)
|
|
||||||
|
|
||||||
a =1
|
|
Loading…
Reference in New Issue
Block a user