Last active
August 29, 2015 14:11
-
-
Save maurelio1234/b7349524f499c6795455 to your computer and use it in GitHub Desktop.
adding comment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for pythonista on ipad | |
# uses https://github.com/lincolnloop/python-qrcode | |
from qrcode.main import QRCode | |
import clipboard | |
import console | |
text = clipboard.get() | |
if text: | |
qc = QRCode() | |
qc.add_data(text) | |
qc.make() | |
qc.make_image().show() | |
else: | |
console.hud_alert('Nothing in clipboard!', 'error') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment