This commit is contained in:
2022-07-18 09:11:46 +02:00
parent 079c9dbc4c
commit a4217ef1c8
3 changed files with 366 additions and 35 deletions

View File

@@ -18,7 +18,6 @@ SPMG_PAUSE = 1
SPMG_MOVE = 2
SPMG_GO = 3
class MotorTweak(QWidget, Ui_MotorTweak):
event_val = pyqtSignal(str, dict)
event_readback = pyqtSignal(str, float, dict)
@@ -335,11 +334,7 @@ class MotorTweak(QWidget, Ui_MotorTweak):
qp.end()
def _draw_limits(self, qp):
try:
m = self.motor
except AttributeError:
_log.warning('Motor not connected')
return
m = self.motor
width, height = self.size().width(), self.size().height()
pad = 5
rounding = 2