class documentation
class QRCode:
Constructor: QRCode(version, error_correction, box_size, border, mask_pattern)
Undocumented
Method | __init__ |
Undocumented |
Method | add |
Add data to this QR Code. |
Method | best |
Find the minimum size required to fit in the data. |
Method | best |
Find the most efficient mask pattern. |
Method | clear |
Reset the internal data. |
Method | get |
Return the QR Code as a multidimensonal array, including the border. |
Method | make |
Compile the data into a QR Code array. |
Method | make |
Undocumented |
Method | map |
Undocumented |
Method | render |
Undocumented |
Method | setup |
Undocumented |
Method | setup |
Undocumented |
Method | setup |
Undocumented |
Method | setup |
Undocumented |
Method | setup |
Undocumented |
Instance Variable | border |
Undocumented |
Instance Variable | box |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | error |
Undocumented |
Instance Variable | mask |
Undocumented |
Instance Variable | modules |
Undocumented |
Instance Variable | modules |
Undocumented |
Instance Variable | version |
Undocumented |
def __init__(self, version=None, error_correction=ERROR_CORRECT_M, box_size=10, border=4, mask_pattern=None):
¶
Undocumented
Add data to this QR Code. :param optimize: Data will be split into multiple chunks to optimize the QR size by finding to more compressed modes of at least this length. Set to ``0`` to avoid optimizing at all.
Return the QR Code as a multidimensonal array, including the border.
To return the array without a border, set ``self.border`` to 0 first.