MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / run_example

Function run_example

qrcode/__init__.py:13–24  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

11
12
13def 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
27if __name__ == "__main__": # pragma: no cover

Callers 2

test_exampleFunction · 0.90
__init__.pyFile · 0.85

Calls 3

add_dataMethod · 0.95
make_imageMethod · 0.95
QRCodeClass · 0.90

Tested by 1

test_exampleFunction · 0.72