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

Method setSendFromComboBox

src/bitmessageqt/__init__.py:2953–2966  ·  view source on GitHub ↗
(self, address = None)

Source from the content-addressed store, hash-verified

2951 return '\n'.join([quote_line(l) for l in message.splitlines()]) + '\n\n'
2952
2953 def setSendFromComboBox(self, address = None):
2954 if address is None:
2955 messagelist = self.getCurrentMessagelist()
2956 if messagelist:
2957 currentInboxRow = messagelist.currentRow()
2958 address = messagelist.item(
2959 currentInboxRow, 0).address
2960 for box in [self.ui.comboBoxSendFrom, self.ui.comboBoxSendFromBroadcast]:
2961 listOfAddressesInComboBoxSendFrom = [str(box.itemData(i).toPyObject()) for i in range(box.count())]
2962 if address in listOfAddressesInComboBoxSendFrom:
2963 currentIndex = listOfAddressesInComboBoxSendFrom.index(address)
2964 box.setCurrentIndex(currentIndex)
2965 else:
2966 box.setCurrentIndex(0)
2967
2968 def on_action_InboxReplyChan(self):
2969 self.on_action_InboxReply(self.REPLY_TYPE_CHAN)

Callers 3

handleKeyPressMethod · 0.95
on_action_InboxReplyMethod · 0.95
confirmURLMethod · 0.80

Calls 1

getCurrentMessagelistMethod · 0.95

Tested by

no test coverage detected