1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-05-06 14:54:21 +02:00

refactor(plot/Waveform1D,plot/BECCurve): BECCurve inherits from BECConnector and can refer to parent_id (Waveform1D) and has its own gui_id

This commit is contained in:
wyzula-jan
2024-02-21 14:26:46 +01:00
parent 402adc44e8
commit 99dce077c4
10 changed files with 511 additions and 207 deletions
+3 -2
View File
@@ -4,11 +4,11 @@ from bec_lib import MessageEndpoints, messages
from bec_widgets.utils import BECDispatcher
from bec_widgets.widgets.figure import BECFigure
from bec_widgets.widgets.plots import BECPlotBase, BECWaveform1D
from bec_widgets.widgets.plots import BECPlotBase, BECWaveform1D, BECCurve
class BECWidgetsCLIServer:
WIDGETS = [BECWaveform1D, BECFigure]
WIDGETS = [BECWaveform1D, BECFigure, BECCurve]
def __init__(self, gui_id: str = None) -> None:
self.dispatcher = BECDispatcher()
@@ -82,3 +82,4 @@ if __name__ == "__main__":
args = parser.parse_args()
server = BECWidgetsCLIServer(gui_id=args.id)
# server = BECWidgetsCLIServer(gui_id="test")