Screen generator for CS-Studio Phoebus displays
Maintained. Last release 3 weeks ago, commits in 8 of the last 26 weeks. Weaker on contributor spread.
pip install phoebusgenPython Module to Generate Phoebus Control Screens
Phoebus is the next generation of Control System Studio, a graphical platform for EPICS control systems. https://github.com/ControlSystemStudio/phoebus
This module provides a way through Python to generate the Display Builder XML format used by Phoebus (and other tools like DBWR). See examples here.
API docs here: https://als-epics.github.io/phoebusgen
Suggestions, comments, and pull requests are welcome.
Requirements
- Python >= 3.6 (3.6 requires the dataclasses pip package)
Install
Pip Package: phoebusgen
pip install phoebusgen
Intro
Phoebus widgets and a Phoebus screen are all Python objects. Widgets can be added to a screen or even to other widgets (for things like Group or Tab widgets).
>>> import phoebusgen
>>> text_update_widget = phoebusgen.widget.TextUpdate('test widget', 'TEST:PV', 10, 20, 20, 50)
>>> text_update_widget.predefined_foreground_color(phoebusgen.colors.OK)
>>> text_update_widget.font_style_bold()
>>> print(text_update_widget)
<?xml version="1.0" ?>
<widget type="textupdate" version="2.0.0">
<name>test widget</name>
<x>10</x>
<y>20</y>
<width>20</width>
<height>50</height>
<pv_name>TEST:PV</pv_name>
<foreground_color>
<color name="OK" red="0" green="255" blue="0" alpha="255"/>
</foreground_color>
<font>
<font family="Liberation Sans" size="14" style="BOLD"/>
</font>
</widget>