PyMoDAQ / pymodaq_plugins_template

Template fro PyMoDAQ's plugin packaging
MIT License
3 stars 31 forks source link

Dual absolute move in DAQ_Move #12

Closed ddennetiere closed 4 months ago

ddennetiere commented 4 months ago

Dear PyMoDAQ community, with pymodaq 4, a new feature has appeared: the two absolute move settings (green and red) on top of the DAQ_Move widget. I do love the feature as one often has to go back and forth between two position. There is one issue though: the value entered in the fields in only registered as one leaves the item. If one was to say enter "100" then click on the associated arrow, the actuator would move to the position entered before the 100. This unexpected behaviour is a security risk for instruments where collision is possible.

Could the value be cached as one change the position and not as one leaves the lineEdit ? I think it is just a matter of using lineedit textChanged signal instead of editingFinished, but i can be wrong.

Thanks, David

seb5g commented 4 months ago

solved by #https://github.com/PyMoDAQ/PyMoDAQ/pull/345