pydm icon indicating copy to clipboard operation
pydm copied to clipboard

Remove PYDM from the start of each widget in designer

Open TaineEriksen opened this issue 4 years ago • 4 comments

Currently all PYDM widget names in designer begin with "PYDM" which makes it harder to scan for the desired widget. Below is a mockup of what I request.

Currently Screen Shot 2021-09-17 at 12 10 02 PM

Request Screen Shot 2021-09-17 at 11 58 21 AM

TaineEriksen avatar Sep 17 '21 19:09 TaineEriksen

This is smart, we should do this. My only concern is if there's some name collision between a native Qt widget and the PyDM version of that same widget. I don't know how designer handles that. If there's a problem, we might need to use something like "Slider (PyDM)" for the PyDM version.

mattgibbs avatar Sep 27 '21 18:09 mattgibbs

If we do implement this, I suggest maintaining PyDM in the widget name somewhere. I often filter the widget list, and it would be confusing if the list just displays two widgets of the 'same' name. We'd lose the information that says these widgets do different things. Ex. PyDMLabel_Filtered .

kabanaty avatar Sep 28 '21 20:09 kabanaty

I think the easiest solution is to have PYDM appended to the widget name instead of prepended That way we don’t have to worry about name conflicts but get the benefit of being able to skim the list.

On Sep 28, 2021, at 13:44, kabanaty @.***> wrote:

 If we do implement this, I suggest maintaining PyDM in the widget name somewhere. I often filter the widget list, and it would be confusing if the list just displays two widgets of the 'same' name. We'd lose the information that says these widgets do different things. Ex.

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

TaineEriksen avatar Sep 28 '21 22:09 TaineEriksen

I'm going to make the case for leaving it as is, even though it is a bit hard to scan in a hurry (I've personally gotten used to it, or like Tyler I use the filter).

If the widget name was changed, all the widgets used in files made at SLAC and elsewhere would have to be updated. And since we would have to replace it with something that also included 'pydm' to distinguish it from the standard PyQt widgets there's no real gain.

If only the widget name/label in Designer was changed, but not the actual widget name, I think this could lead to confusion if there's inconsistency when people switch between graphically building the UI files and coding the interface with Python.

Either way, I would want to make sure there was wide agreement in this before going ahead with any change.

slactasha avatar Sep 28 '21 23:09 slactasha

The team has decided to not move forward with this request

YektaY avatar Aug 15 '23 20:08 YektaY