MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / __init__

Method __init__

src/bitmessageqt/newchandialog.py:12–23  ·  view source on GitHub ↗
(self, parent=None)

Source from the content-addressed store, hash-verified

10
11class 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()

Callers

nothing calls this directly

Calls 4

AddressValidatorClass · 0.90
PassPhraseValidatorClass · 0.90
startMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected