From b4d7d730d03761135ac3eef7b056dd5683558586 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Wed, 19 Jul 2023 01:29:55 +0200 Subject: [PATCH] poor: pen experiments --- poor_mans_visualisation.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/poor_mans_visualisation.py b/poor_mans_visualisation.py index 56ee8d5..23dd98f 100755 --- a/poor_mans_visualisation.py +++ b/poor_mans_visualisation.py @@ -262,7 +262,12 @@ class MainWindow(QtWidgets.QMainWindow): if self.highlighter is not None and self.highlighter in self.annot_topo.annotations: ann = self.annot_topo.annotations[self.highlighter] for shk in ann.for_vertex.keys() | ann.for_edge.keys(): - shapes[shk].setPen(QtGui.QPen(QtGui.QColor('blue'))) + pen = QtGui.QPen(QtGui.QColor('blue')) + pen.setWidth(pen.width() * 3) + c = pen.color() + c.setAlpha(128) + pen.setColor(c) + shapes[shk].setPen(pen) # FIXME: also color edges in opposite direction for sh in shapes.values(): self.scene.addItem(sh)