electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

qrwindow.py (1703B)


      1 #!/usr/bin/env python
      2 #
      3 # Electrum - lightweight Bitcoin client
      4 # Copyright (C) 2014 Thomas Voegtlin
      5 #
      6 # Permission is hereby granted, free of charge, to any person
      7 # obtaining a copy of this software and associated documentation files
      8 # (the "Software"), to deal in the Software without restriction,
      9 # including without limitation the rights to use, copy, modify, merge,
     10 # publish, distribute, sublicense, and/or sell copies of the Software,
     11 # and to permit persons to whom the Software is furnished to do so,
     12 # subject to the following conditions:
     13 #
     14 # The above copyright notice and this permission notice shall be
     15 # included in all copies or substantial portions of the Software.
     16 #
     17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     18 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     19 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
     20 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
     21 # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
     22 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     23 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
     24 # SOFTWARE.
     25 
     26 from PyQt5.QtCore import Qt
     27 from PyQt5.QtWidgets import QHBoxLayout, QWidget
     28 
     29 from .qrcodewidget import QRCodeWidget
     30 
     31 from electrum.i18n import _
     32 
     33 
     34 class QR_Window(QWidget):
     35 
     36     def __init__(self, win):
     37         QWidget.__init__(self)
     38         self.win = win
     39         self.setWindowTitle('Electrum - '+_('Payment Request'))
     40         self.setMinimumSize(800, 800)
     41         self.setFocusPolicy(Qt.NoFocus)
     42         main_box = QHBoxLayout()
     43         self.qrw = QRCodeWidget()
     44         main_box.addWidget(self.qrw, 1)
     45         self.setLayout(main_box)