Build an example QR Code and display it. There's an even easier way than the code here though: just use the ``make`` shortcut.
(data="http://www.lincolnloop.com", *args, **kwargs)
| 11 | |
| 12 | |
| 13 | def run_example(data="http://www.lincolnloop.com", *args, **kwargs): |
| 14 | """ |
| 15 | Build an example QR Code and display it. |
| 16 | |
| 17 | There's an even easier way than the code here though: just use the ``make`` |
| 18 | shortcut. |
| 19 | """ |
| 20 | qr = QRCode(*args, **kwargs) |
| 21 | qr.add_data(data) |
| 22 | |
| 23 | im = qr.make_image() |
| 24 | im.show() |
| 25 | |
| 26 | |
| 27 | if __name__ == "__main__": # pragma: no cover |