YamlToolbar

A button toolbar loaded from a lucid-style yaml file.

This was originally part of lucid but has moved here so it can be used without the lucid launcher, of which it has no real dependencies.

../../../_images/yaml_toolbar.png
class pcdswidgets.common.toolbar.yaml_toolbar.YamlToolbar(parent: QWidget | None = None)[source]

Tab Widget with tabs containing buttons defined via a yaml file.

This uses the legacy yaml format from lucid, which defines which buttons go in which tab.

See https://pcdshub.github.io/lucid/master/toolbar.html for more information.

get_config_file() → str[source]

Return the last set path to the toolbar config yaml file.

set_config_file(file: str)[source]

Set the path to the toolbar config yaml file and create the necessary tabs and buttons.

Parameters:

file (str) – The absolute path to the config file.