(self, *args, **kwargs)
| 38 | class ToolTipWidget(QWidget): |
| 39 | |
| 40 | def __init__(self, *args, **kwargs): |
| 41 | super(ToolTipWidget, self).__init__(*args, **kwargs) |
| 42 | self.setAttribute(Qt.WA_StyledBackground, True) |
| 43 | self.setStyleSheet( |
| 44 | "ToolTipWidget{background: rgba(50,50,50,70); border: none;};color:white") |
| 45 | layout = QVBoxLayout(self) |
| 46 | layout.addWidget(QLabel("test", self)) |
| 47 | |
| 48 | for color in ("red", "blue", "green", "yellow", "black"): |
| 49 | layout.addWidget(ToolTipItem(color, color, self)) |
| 50 | |
| 51 | |
| 52 | app = QApplication(sys.argv) |
nothing calls this directly
no test coverage detected