Network: Change selected reach color and minor change.

setup.py
Pierre-Antoine Rouby 2023-12-12 10:51:25 +01:00
parent ccb55ff4e1
commit 8ce5a4d215
1 changed files with 6 additions and 3 deletions

View File

@ -178,12 +178,15 @@ class EdgeItem(QGraphicsItem):
if self.graph.selected_item() == self:
color = Qt.red
elif self.graph.current_edge() == self:
color = Qt.black
color = Qt.blue
elif not self.graph.graph.is_enable_edge(self.edge):
color = Qt.darkGray
painter.setPen(QPen(color, 2, Qt.SolidLine, Qt.RoundCap,
Qt.RoundJoin))
painter.setPen(
QPen(
color, 2, Qt.SolidLine, Qt.RoundCap, Qt.RoundJoin
)
)
# Draw the line
painter.drawLine(line)