Sections
Timeline
Browse Source
View Tickets
New Ticket
Sub-Sections
Start Page
Index
History
Last Change
Download
Plain Text
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

QR Codes Example

Here is a QR Code example.

Generated Image

QR code example

Generated URL

http://chart.apis.google.com/chart?cht=qr&chs=125x125&chl=Hello%2C%20World%21&chld=H|0

Example Source Code

from pygooglechart import QRChart

# Create a 125x125 QR code chart
chart = QRChart(125, 125)

# Add the text
chart.add_data('Hello, World!')

# "Level H" error correction with a 0 pixel margin
chart.set_ec('H', 0)

# Download
chart.download('qr-hello.png')