Skip to content

Commit

Permalink
Merge pull request #36 from DiamondLightSource/set-title
Browse files Browse the repository at this point in the history
Add API to set title of generated UI
  • Loading branch information
GDYendell committed Jun 7, 2024
2 parents fb929a1 + b6ac0f1 commit 61a896a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fastcs/backends/epics/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 61a896a

Please sign in to comment.