pydm icon indicating copy to clipboard operation
pydm copied to clipboard

WIP:add a new widget called ReadbackButton.

Open lvhuihui1988 opened this issue 3 years ago • 2 comments

…on in EDM that has two PV properties. One is Control PV and the other is Readback PV. In edm, the button widget has two PV properties. One is Control PV, and the other is Readback PV. We can also set the color in Inconsistent property. When the two PVs' value are different, the inconsistent color will shown on the button. Similarly, we need this functionality in PyDM GUIs. So I write a new widget called ReadbackButton. In this widget, I add a readback channel and inconsistentColor properties, as well as corresponding slot functions, relative to the PushButton widget.

lvhuihui1988 avatar Nov 22 '21 07:11 lvhuihui1988

In edm, the button widget has two PV properties. One is Control PV, and the other is Readback PV. We can also set the color in Inconsistent property. When the two PVs' value are different, the inconsistent color will shown on the button.

lvhuihui1988 avatar Nov 22 '21 07:11 lvhuihui1988

Codecov Report

Merging #774 (97eff3e) into master (9ac9bd5) will decrease coverage by 1.48%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #774      +/-   ##
==========================================
- Coverage   58.92%   57.43%   -1.49%     
==========================================
  Files          91       92       +1     
  Lines       10543    10815     +272     
==========================================
  Hits         6212     6212              
- Misses       4331     4603     +272     
Impacted Files Coverage Δ
pydm/widgets/qtplugins.py 0.00% <0.00%> (ø)
pydm/widgets/readbackbutton.py 0.00% <0.00%> (ø)
pydm/widgets/rules.py 70.94% <0.00%> (-1.12%) :arrow_down:
pydm/widgets/base.py 90.76% <0.00%> (+0.45%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9ac9bd5...97eff3e. Read the comment docs.

codecov-commenter avatar Nov 22 '21 07:11 codecov-commenter