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

Method getCurrentSearchLine

src/bitmessageqt/__init__.py:3530–3545  ·  view source on GitHub ↗
(self, currentIndex=None, retObj=False)

Source from the content-addressed store, hash-verified

3528 return self.ui.textEditInboxMessage
3529
3530 def getCurrentSearchLine(self, currentIndex=None, retObj=False):
3531 if currentIndex is None:
3532 currentIndex = self.ui.tabWidget.currentIndex()
3533 messagelistList = [
3534 self.ui.inboxSearchLineEdit,
3535 False,
3536 self.ui.inboxSearchLineEditSubscriptions,
3537 self.ui.inboxSearchLineEditChans,
3538 ]
3539 if currentIndex >= 0 and currentIndex < len(messagelistList):
3540 if retObj:
3541 return messagelistList[currentIndex]
3542 else:
3543 return messagelistList[currentIndex].text().toUtf8().data()
3544 else:
3545 return None
3546
3547 def getCurrentSearchOption(self, currentIndex=None):
3548 if currentIndex is None:

Callers 5

handleKeyPressMethod · 0.95
displayNewSentMessageMethod · 0.95
treeWidgetItemClickedMethod · 0.95

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected