7
ROOT = os.path.dirname(os.path.abspath(__file__))
8
sys.path.insert(0, os.path.join(ROOT, '..'))
10
from pygooglechart import QRChart
17
# Create a 250x250 QR chart
18
chart = QRChart(250, 250)
21
chart.add_data('Hello, World!')
23
# "Level H" error correction with a 0 pixel margin
27
chart.download('qr-hello.png')
32
if __name__ == '__main__':