@ -204,23 +205,26 @@ class ElectrumWindow(QMainWindow):
grid=QtGui.QGridLayout()
grid.setSpacing(8)
grid.setColumnMinimumWidth(3,300)
grid.setColumnStretch(4,1)
grid.addWidget(QLabel('Pay to'),1,0)
grid.addWidget(paytoEdit,1,1)
grid.addWidget(paytoEdit,1,1,1,3)
grid.addWidget(QLabel('Description'),2,0)
grid.addWidget(descriptionEdit,2,1)
grid.addWidget(descriptionEdit,2,1,1,3)
grid.addWidget(QLabel('Amount'),3,0)
grid.addWidget(amountEdit,3,1)
grid.addWidget(amountEdit,3,1,1,2)
grid.addWidget(QLabel('Fee'),4,0)
grid.addWidget(feeEdit,4,1)
grid.addWidget(feeEdit,4,1,1,2)
sendButton=QPushButton("Send")
clearButton=QPushButton("Clear")
grid.addWidget(sendButton,5,1)
grid.addWidget(clearButton,5,1)
clearButton=QPushButton("Clear")
grid.addWidget(clearButton,5,2)
w.setLayout(grid)
w.show()
@ -237,8 +241,8 @@ class ElectrumWindow(QMainWindow):
l=QTreeWidget(self)
l.setColumnCount(3)
l.setColumnWidth(0,330)
l.setColumnWidth(1,330)
l.setColumnWidth(0,350)
l.setColumnWidth(1,330)
l.setColumnWidth(2,20)
l.setHeaderLabels(['Address','Label','Tx'])
@ -347,6 +351,7 @@ class ElectrumWindow(QMainWindow):
b.setToolTip("Password")
b.setFlat(True)
b.setMaximumWidth(25)
b.clicked.connect(self.change_password_dialog)
hbox.addWidget(b)
icon=QIcon("icons/preferences.svg")
@ -402,6 +407,62 @@ class ElectrumWindow(QMainWindow):
+''.join(mnemonic.mn_encode(seed))+"\""
QMessageBox.information(self,'Seed',msg,'OK')
defchange_password_dialog(self):
d=QDialog(self)
d.setModal(1)
pw=QLineEdit()
pw.setEchoMode(2)
new_pw=QLineEdit()
new_pw.setEchoMode(2)
conf_pw=QLineEdit()
conf_pw.setEchoMode(2)
grid=QGridLayout()
grid.setSpacing(8)
msg='Your wallet is encrypted. Use this dialog to change the password.\n To disable wallet encryption, enter an empty new password.'ifself.wallet.use_encryptionelse'Your wallet keys are not encrypted'