From b6ac0f1b9f66cda0c70208bbed4f672e4825c379 Mon Sep 17 00:00:00 2001 From: Gary Yendell Date: Fri, 17 May 2024 10:52:52 +0000 Subject: [PATCH] Add API to set title of generated UI --- src/fastcs/backends/epics/gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fastcs/backends/epics/gui.py b/src/fastcs/backends/epics/gui.py index fa613ef..1bbfaa1 100644 --- a/src/fastcs/backends/epics/gui.py +++ b/src/fastcs/backends/epics/gui.py @@ -41,6 +41,7 @@ class EpicsGUIFormat(Enum): class EpicsGUIOptions: output_path: Path = Path.cwd() / "output.bob" file_format: EpicsGUIFormat = EpicsGUIFormat.bob + title: str = "Simple Device" class EpicsGUI: @@ -137,7 +138,7 @@ def create_gui(self, options: EpicsGUIOptions | None = None) -> None: ) ) - device = Device(label="Simple Device", children=components) + device = Device(label=options.title, children=components) formatter.format(device, options.output_path)