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

Method __init__

QtChart/ToolTip2.py:92–99  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

90 Cache = {}
91
92 def __init__(self, *args, **kwargs):
93 super(ToolTipWidget, self).__init__(*args, **kwargs)
94 self.setAttribute(Qt.WA_StyledBackground, True)
95 self.setStyleSheet(
96 "ToolTipWidget{background: rgba(50,50,50,70);}")
97 layout = QVBoxLayout(self)
98 self.titleLabel = QLabel(self, styleSheet="color:white;")
99 layout.addWidget(self.titleLabel)
100
101 def updateUi(self, title, points):
102 self.titleLabel.setText(title)

Callers

nothing calls this directly

Calls 2

addWidgetMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected