pydm
pydm copied to clipboard
ENH: Add PV capability to buttons
What's the problem this feature will solve? In EDM, many users combined rectangles with an alarming border and buttons to indicate alarm status. This feature is available by sticking a button in a PyDMFrame, but can be messy and difficult to place properly in a layout.
Describe the solution you'd like Add a PV property to all PyDMButtons so that 'alarmSensitiveBorder' can be enabled and alarm borders can be displayed directly on the PyDMButton without an extra frame.
The class PyDMWidget
includes a function called check_enable_state
that automatically disables the widget if the PV is disconnected. This should not be the functionality for buttons, as it does not make sense to disable the button when the alarm is disconnected.