MCPcopy Index your code
hub / github.com/PyQt5/PyQt / updateUi

Method updateUi

QtChart/ToolTip.py:101–112  ·  view source on GitHub ↗
(self, title, points)

Source from the content-addressed store, hash-verified

99 layout.addWidget(self.titleLabel)
100
101 def updateUi(self, title, points):
102 self.titleLabel.setText(title)
103 for serie, point in points:
104 if serie not in self.Cache:
105 item = ToolTipItem(
106 serie.color(),
107 (serie.name() or "-") + ":" + str(point.y()), self)
108 self.layout().addWidget(item)
109 self.Cache[serie] = item
110 else:
111 self.Cache[serie].setText(
112 (serie.name() or "-") + ":" + str(point.y()))
113
114
115class GraphicsProxyWidget(QGraphicsProxyWidget):

Callers 1

showMethod · 0.45

Calls 6

nameMethod · 0.80
yMethod · 0.80
addWidgetMethod · 0.80
ToolTipItemClass · 0.70
setTextMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected