Skip to content
Snippets Groups Projects
Commit 83ac6839 authored by Henri Payno's avatar Henri Payno
Browse files

axis: fix display of the lockButton. Never show it when in manual or read mode

close #694
parent 0fba7086
No related branches found
No related tags found
No related merge requests found
...@@ -1798,6 +1798,9 @@ class _CalculationWidget(qt.QWidget): ...@@ -1798,6 +1798,9 @@ class _CalculationWidget(qt.QWidget):
self._qcbPosition.setCurrentIndex(index) self._qcbPosition.setCurrentIndex(index)
else: else:
raise ValueError("Unagle to find mode", mode) raise ValueError("Unagle to find mode", mode)
self._lockMethodPB.setVisible(
mode not in (axis_mode.AxisMode.manual, axis_mode.AxisMode.read)
)
self._qcbPosition.blockSignals(old) self._qcbPosition.blockSignals(old)
def _nearValueChanged(self, *args, **kwargs): def _nearValueChanged(self, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment