Ejemplo n.º 1
0
    def hoverLeaveEvent(self, event: QGraphicsSceneHoverEvent):
        # self._circle_brush = self._circle_connected_brush if self.connected else self._circle_disconnected_brush
        if not self.is_connected():
            self._border_brush = self._border_disconnected_brush
            self.update()

        event.accept()
Ejemplo n.º 2
0
 def hoverEnterEvent(self, event: QGraphicsSceneHoverEvent):
     # self._circle_brush = self._circle_hover_brush
     self._border_brush = self._border_connected_brush
     self.update()
     event.accept()