Beispiel #1
0
    def __init__(self, parent, bp, bpModel):
        OverlayWidget.__init__(self, parent, self.color)
        self.markerBp = QPixmap(":/markers/bp.png")
        self.markerBpDisabled = QPixmap(":/markers/bp_dis.png")
        self.bp = bp
        self.__bpModel = bpModel
        self.__icon = ClickableLabel()
        self.__icon.clicked.connect(self.toggleEnabled)
        self.__text = QLabel()

        self.layout().addWidget(self.__icon, 0)
        self.layout().addWidget(self.__text, 0)
        self.__icon.setCursor(Qt.ArrowCursor)