MCPcopy Create free account
hub / github.com/PyQt5/PyQt / onItemPressed

Method onItemPressed

QListWidget/SignalsExample.py:112–115  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

110 '{0}: {1}'.format(formatColor('itemEntered', QColor(Qt.darkCyan)), item.text()))
111
112 def onItemPressed(self, item):
113 print(item)
114 self.resultView.appendHtml(
115 '{0}: {1}'.format(formatColor('itemPressed', QColor(Qt.darkYellow)), item.text()))
116
117 def onItemSelectionChanged(self):
118 self.resultView.appendPlainText('itemSelectionChanged')

Callers

nothing calls this directly

Calls 2

formatColorFunction · 0.85
textMethod · 0.45

Tested by

no test coverage detected