MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / accept

Method accept

src/bitmessageqt/address_dialogs.py:78–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 self.parent = parent
77
78 def accept(self):
79 if self.valid:
80 self.data = (
81 addBMIfNotPresent(str(self.lineEditAddress.text())),
82 str(self.lineEditLabel.text().toUtf8())
83 )
84 else:
85 queues.UISignalQueue.put(('updateStatusBar', _translate(
86 "MainWindow",
87 "The address you entered was invalid. Ignoring it."
88 )))
89 super(AddressDataDialog, self).accept()
90
91
92class AddAddressDialog(AddressDataDialog, RetranslateMixin):

Callers

nothing calls this directly

Calls 4

addBMIfNotPresentFunction · 0.90
_translateFunction · 0.90
putMethod · 0.80
acceptMethod · 0.45

Tested by

no test coverage detected