anqude 7a6b618168
Big update
now GUI is one window, qr on center,design improve
2023-01-25 18:49:25 +04:00

12 lines
341 B
Python

import qrcode
def generate_qr(password):
qr = qrcode.QRCode()
qr.add_data('password: '+password)
qr.make(fit=True)
img = qr.make_image(fill_color="white", back_color="#242424")
img.save("qr.png")
def generate_qr_text(password):
qr = qrcode.QRCode()
qr.add_data('password: '+password)
return(qr.print_ascii())