MCPcopy 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
25def formatColor(text, color):
26 return '<font color={0}>{1}</font>'.format(color.name(), text)
27
28
29class Window(QWidget):

Callers 9

onCurrentItemChangedMethod · 0.85
onCurrentRowChangedMethod · 0.85
onCurrentTextChangedMethod · 0.85
onItemActivatedMethod · 0.85
onItemChangedMethod · 0.85
onItemClickedMethod · 0.85
onItemDoubleClickedMethod · 0.85
onItemEnteredMethod · 0.85
onItemPressedMethod · 0.85

Calls 1

nameMethod · 0.80

Tested by

no test coverage detected