(self, parent=None)
| 10 | |
| 11 | class NewChanDialog(QtGui.QDialog, RetranslateMixin): |
| 12 | def __init__(self, parent=None): |
| 13 | super(NewChanDialog, self).__init__(parent) |
| 14 | widgets.load('newchandialog.ui', self) |
| 15 | self.parent = parent |
| 16 | self.chanAddress.setValidator(AddressValidator(self.chanAddress, self.chanPassPhrase, self.validatorFeedback, self.buttonBox, False)) |
| 17 | self.chanPassPhrase.setValidator(PassPhraseValidator(self.chanPassPhrase, self.chanAddress, self.validatorFeedback, self.buttonBox, False)) |
| 18 | |
| 19 | self.timer = QtCore.QTimer() |
| 20 | QtCore.QObject.connect(self.timer, QtCore.SIGNAL("timeout()"), self.delayedUpdateStatus) |
| 21 | self.timer.start(500) # milliseconds |
| 22 | self.setAttribute(QtCore.Qt.WA_DeleteOnClose) |
| 23 | self.show() |
| 24 | |
| 25 | def delayedUpdateStatus(self): |
| 26 | self.chanPassPhrase.validator().checkQueue() |
nothing calls this directly
no test coverage detected