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

Method onCurrentItemChanged

QListWidget/SignalsExample.py:71–77  ·  view source on GitHub ↗
(self, current, previous)

Source from the content-addressed store, hash-verified

69 self.onItemSelectionChanged)
70
71 def onCurrentItemChanged(self, current, previous):
72 current = current.text() if current else ''
73 previous = previous.text() if previous else ''
74 self.resultView.appendHtml(
75 '{0}: [{1}] -> [{2}]'.format(
76 formatColor('currentItemChanged', QColor(Qt.red)),
77 current, previous))
78
79 def onCurrentRowChanged(self, currentRow):
80 self.resultView.appendHtml(

Callers

nothing calls this directly

Calls 2

formatColorFunction · 0.85
textMethod · 0.45

Tested by

no test coverage detected