1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-08 01:37:52 +01:00

fix: colorbutton change now symbols as well

This commit is contained in:
wyzula-jan
2023-09-01 10:40:07 +02:00
parent 2c6719cf39
commit 6d2e1c9d08

View File

@@ -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."""