def make_bitmap(data):
    # fixme: this is highly inefficient
    import qrcode
    from electrum_xvg import bmp
    qr = qrcode.QRCode()
    qr.add_data(data)
    bmp.save_qrcode(qr, "/sdcard/sl4a/qrcode.bmp")
def make_bitmap(data):
    # fixme: this is highly inefficient
    import qrcode
    from electrum_xvg import bmp
    qr = qrcode.QRCode()
    qr.add_data(data)
    bmp.save_qrcode(qr,"/sdcard/sl4a/qrcode.bmp")
def make_bitmap(data):
    # fixme: this is highly inefficient
    droid.dialogCreateSpinnerProgress("please wait")
    droid.dialogShow()
    try:
        import qrcode
        from electrum_xvg import bmp
        qr = qrcode.QRCode()
        qr.add_data(data)
        bmp.save_qrcode(qr, "/sdcard/sl4a/qrcode.bmp")
    finally:
        droid.dialogDismiss()
Exemple #4
0
def make_bitmap(data):
    # fixme: this is highly inefficient
    droid.dialogCreateSpinnerProgress("please wait")
    droid.dialogShow()
    try:
        import qrcode
        from electrum_xvg import bmp
        qr = qrcode.QRCode()
        qr.add_data(data)
        bmp.save_qrcode(qr,"/sdcard/sl4a/qrcode.bmp")
    finally:
        droid.dialogDismiss()
 def copy_to_clipboard():
     bmp.save_qrcode(qrw.qr, filename)
     QApplication.clipboard().setImage(QImage(filename))
     QMessageBox.information(None, _('Message'), _("QR code saved to clipboard"), _('OK'))
 def print_qr():
     bmp.save_qrcode(qrw.qr, filename)
     QMessageBox.information(None, _('Message'), _("QR code saved to file") + " " + filename, _('OK'))
Exemple #7
0
 def copy_to_clipboard():
     bmp.save_qrcode(qrw.qr, filename)
     QApplication.clipboard().setImage(QImage(filename))
     QMessageBox.information(None, _('Message'),
                             _("QR code saved to clipboard"),
                             _('OK'))
Exemple #8
0
 def print_qr():
     bmp.save_qrcode(qrw.qr, filename)
     QMessageBox.information(
         None, _('Message'),
         _("QR code saved to file") + " " + filename, _('OK'))