From 65dbe5a88b06c7009468f286ab2864b7edc1563d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Wed, 16 Aug 2023 15:24:15 +0200 Subject: [PATCH] WIP --- tools/ecmcMotionMainPyQtGraph.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/ecmcMotionMainPyQtGraph.py b/tools/ecmcMotionMainPyQtGraph.py index c0e945e..ccf00ef 100644 --- a/tools/ecmcMotionMainPyQtGraph.py +++ b/tools/ecmcMotionMainPyQtGraph.py @@ -301,11 +301,10 @@ class ecmcMtnMainGui(QtWidgets.QDialog): frameMotion = QFrame(self) layoutMotionGrid = QGridLayout() frameMotion.setLayout(layoutMotionGrid) - btn = QPushButton(text = 'Test') - btn.clicked.connect(self.openMotorRecordPanel) - btn.setFixedSize(100, 50) - layoutMotionGrid.addWidget(btn,0,0) - + self.btnMotorRecord = QPushButton(text = 'Motor Record') + self.btnMotorRecord.clicked.connect(self.openMotorRecordPanel) + self.btnMotorRecord.setFixedSize(100, 50) + layoutMotionGrid.addWidget(self.btnMotorRecord,0,0) label = QLabel('Axis id:') self.cmbBxSelectAxis = QComboBox() @@ -585,14 +584,14 @@ class ecmcMtnMainGui(QtWidgets.QDialog): prefixPV = epics.PV(axisPrefixPvName) axisPrefix = prefixPV.get() if axisPrefix is not None: - print('prefix of axis:' + axisPrefix) + #print('prefix of axis:' + axisPrefix) self.axisPrefix = axisPrefix axisNamePvName = self.pvPrefixStr + pvAxisNamePart1 + str(int(value)) + pvAxisNamePart2 namePV = epics.PV(axisNamePvName) axisName = namePV.get() if axisName is not None: - print('name of axis:' + axisName) + #print('name of axis:' + axisName) self.axisName = axisName def sig_cb_SmpHz_RB(self,value):