Closed marciodo closed 5 years ago
I think the PyDMCheckbox covers this use case most of the time - a boolean control. I agree that sometimes a fancy appearance would be nice, but I think its low priority right now.
Regarding ONAM and ZNAM, the data plugin system doesn't have any support for that right now. It is such a special case that I don't want to add special support for it. But maybe the EPICS plugin could take ONAM and ZNAM, and treat it as a two-valued enum. I don't know much about those fields, can you get them as part of the PV's control information, or do you have to do a separate caget to retrieve them?
The idea is to have something like https://codecanyon.net/item/switch-button-for-windows-forms/10599398
My use case is: I have a filter mover that I can activate or deactivate. I would like to press the button to activate it and see the button in the activated position and vice-versa. A label could show the PV value (based on ONAM and ZNAM configuration fields). Also, the status of the button (activated/deactivated) should be related to the binary out PV raw value, when using Channel Access. I don't know if it is possible to make it compatible with all kinds of channel plugins.
It would be great if I could have a vertical and horizontal option.
Using a regular push button to represent this use case gives a confusing result.