this should not be static
This commit is contained in:
parent
8583f6a560
commit
7ce6860f42
|
@ -452,7 +452,6 @@ class ElectrumWindow(QMainWindow):
|
||||||
self.setStatusBar(sb)
|
self.setStatusBar(sb)
|
||||||
|
|
||||||
def newaddress_dialog(self):
|
def newaddress_dialog(self):
|
||||||
|
|
||||||
text, ok = QInputDialog.getText(self, 'New Contact', 'Address:')
|
text, ok = QInputDialog.getText(self, 'New Contact', 'Address:')
|
||||||
address = str(text)
|
address = str(text)
|
||||||
if ok:
|
if ok:
|
||||||
|
@ -467,7 +466,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
def show_seed_dialog(wallet, parent=None):
|
def show_seed_dialog(wallet, parent=None):
|
||||||
import mnemonic
|
import mnemonic
|
||||||
if wallet.use_encryption:
|
if wallet.use_encryption:
|
||||||
password = self.password_dialog()
|
password = parent.password_dialog()
|
||||||
if not password: return
|
if not password: return
|
||||||
else:
|
else:
|
||||||
password = None
|
password = None
|
||||||
|
@ -491,9 +490,8 @@ class ElectrumWindow(QMainWindow):
|
||||||
def show_message(self, msg):
|
def show_message(self, msg):
|
||||||
QMessageBox.information(self, 'Message', msg, 'OK')
|
QMessageBox.information(self, 'Message', msg, 'OK')
|
||||||
|
|
||||||
@staticmethod
|
def password_dialog(self ):
|
||||||
def password_dialog( parent=None ):
|
d = QDialog(self)
|
||||||
d = QDialog(parent)
|
|
||||||
d.setModal(1)
|
d.setModal(1)
|
||||||
|
|
||||||
pw = QLineEdit()
|
pw = QLineEdit()
|
||||||
|
|
Loading…
Reference in New Issue