Skip to content

Commit 9807a43

Browse files
authored
Create QRcode_gen.py
1 parent b4574fb commit 9807a43

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

QR code generator/QRcode_gen.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pyqrcode
2+
import png
3+
4+
QRtext = input(print('Enter text to generate QR: '))
5+
6+
QRimg = input(print('Enter image name to save: '))
7+
8+
QRimg = QRimg + '.png'
9+
10+
FinalQR = pyqrcode.create(QRtext)
11+
12+
FinalQR.show()
13+
FinalQR.png(QRimg, scale=6)

0 commit comments

Comments
 (0)