From 6d2e1c9d08595a45f502287c6490905e8df3db10 Mon Sep 17 00:00:00 2001 From: wyzula-jan <133381102+wyzula-jan@users.noreply.github.com> Date: Fri, 1 Sep 2023 10:40:07 +0200 Subject: [PATCH] fix: colorbutton change now symbols as well --- bec_widgets/examples/extreme/extreme.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bec_widgets/examples/extreme/extreme.py b/bec_widgets/examples/extreme/extreme.py index c991ea7c..97d4f7df 100644 --- a/bec_widgets/examples/extreme/extreme.py +++ b/bec_widgets/examples/extreme/extreme.py @@ -242,7 +242,9 @@ class PlotApp(QWidget): """Change the color of a curve.""" color = btn.color() pen_curve = mkPen(color=color, width=2, style=QtCore.Qt.DashLine) + brush_curve = mkBrush(color=color) curve.setPen(pen_curve) + curve.setSymbolBrush(brush_curve) def hook_crosshair(self): """Attach crosshairs to each plot and connect them to the update_table method."""