(self, *args, **kwargs)
| 56 | Cache = {} |
| 57 | |
| 58 | def __init__(self, *args, **kwargs): |
| 59 | super(ToolTipWidget, self).__init__(*args, **kwargs) |
| 60 | self.setAttribute(Qt.WA_StyledBackground, True) |
| 61 | self.setStyleSheet( |
| 62 | "ToolTipWidget{background: rgba(50, 50, 50, 100);}") |
| 63 | layout = QVBoxLayout(self) |
| 64 | self.titleLabel = QLabel(self, styleSheet="color:white;") |
| 65 | layout.addWidget(self.titleLabel) |
| 66 | |
| 67 | def updateUi(self, title, bars): |
| 68 | self.titleLabel.setText(title) |