X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=plugins%2Fqrscanner.py;fp=plugins%2Fqrscanner.py;h=a7e41f8b7f88bb92132b05c3251b4ab67e24b777;hb=8685d749a3b7329ca318aa1ce1d2c9c440b26853;hp=c9094cf536b01f79262f5882c181704bce4cc96b;hpb=6d0488c2de4330a89e864b9fc070fa09a9e2badf;p=electrum-nvc.git diff --git a/plugins/qrscanner.py b/plugins/qrscanner.py index c9094cf..a7e41f8 100644 --- a/plugins/qrscanner.py +++ b/plugins/qrscanner.py @@ -45,27 +45,20 @@ class Plugin(BasePlugin): def init(self): self.win = self.gui.main_window self.win.raw_transaction_menu.addAction(_("&From QR code"), self.read_raw_qr) + b = QPushButton(_("Scan QR code")) + b.clicked.connect(self.fill_from_qr) + self.win.send_grid.addWidget(b, 1, 5) + self.win.send_grid.setColumnStretch(5, 0) + self.win.send_grid.setColumnStretch(6, 1) def init_transaction_dialog(self, dialog, buttons): - print dialog, buttons - #if not wallet.seed: b = QPushButton(_("Show QR code")) b.clicked.connect(self.show_raw_qr) buttons.insertWidget(1,b) - def load_wallet(self, wallet): - b = QPushButton(_("Scan QR code")) - b.clicked.connect(self.fill_from_qr) - self.send_tab_grid.addWidget(b, 1, 5) - self.send_tab_grid.setColumnStretch(5, 0) - self.send_tab_grid.setColumnStretch(6, 1) - def is_available(self): return self._is_available - def create_send_tab(self, grid): - self.send_tab_grid = grid - def scan_qr(self): proc = zbar.Processor() try: