@ -40,7 +40,7 @@ from electrum.plugins import run_hook
fromutilimport*
classTxDialog(QDialog):
classTxDialog(QWidget):
def__init__(self,tx,parent):
self.tx=tx
@ -49,10 +49,9 @@ class TxDialog(QDialog):
self.wallet=parent.wallet
self.saved=True
QDialog.__init__(self)
QWidget.__init__(self)
self.setMinimumWidth(600)
self.setWindowTitle(_("Transaction"))
self.setModal(1)
vbox=QVBoxLayout()
self.setLayout(vbox)
@ -109,9 +108,11 @@ class TxDialog(QDialog):
defclose(self):
ifnotself.saved:
ifQMessageBox.question(self,_('Message'),_('This transaction is not saved. Close anyway?'),QMessageBox.Yes|QMessageBox.No,QMessageBox.No)==QMessageBox.No:
ifQMessageBox.question(
self,_('Message'),_('This transaction is not saved. Close anyway?'),