pydm icon indicating copy to clipboard operation
pydm copied to clipboard

ENH: Add PV capability to buttons

Open kabanaty opened this issue 2 years ago • 1 comments

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.

kabanaty avatar Sep 21 '22 15:09 kabanaty

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.

kabanaty avatar Oct 24 '22 23:10 kabanaty