Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyQt5/PyQt
/ formatColor
Function
formatColor
QListWidget/SignalsExample.py:25–26 ·
view source on GitHub ↗
(text, color)
Source
from the content-addressed store, hash-verified
23
24
25
def
formatColor(text, color):
26
return
'<font color={0}>{1}</font>'
.format(color.name(), text)
27
28
29
class
Window(QWidget):
Callers
9
onCurrentItemChanged
Method · 0.85
onCurrentRowChanged
Method · 0.85
onCurrentTextChanged
Method · 0.85
onItemActivated
Method · 0.85
onItemChanged
Method · 0.85
onItemClicked
Method · 0.85
onItemDoubleClicked
Method · 0.85
onItemEntered
Method · 0.85
onItemPressed
Method · 0.85
Calls
1
name
Method · 0.80
Tested by
no test coverage detected