def invertedScale(self): """ Whether or not the motor scale is inverted. Returns ------- bool """ return self._inverted_scale @invertedScale.setter def invertedScale(self, inverted): """ Whether or not the motor scale is inverted. Parameters ---------- flipped : bool """ if self._inverted_scale != inverted: self._inverted_scale = inverted self.build_layout(self._orientation, self._flipped, inverted) if __name__ == '__main__': app = PyDMApplication() #widget = QMotor(init_channel='SOL8:m1') widget = QMotor(init_channel='A') app.establish_widget_connections(widget=widget) sys.exit(app.exec_())
return True except: return False def errorMessage(self, message): self.showDialog("---Attention---", message) ''' ____________________________________________________________________________________________________________________________________ Functions not used ''' if __name__ == "__main__": import sys app = PyDMApplication(use_main_window=False) Ui_MainWindow_Ocean = QtWidgets.QMainWindow() ui = PressureSystem() ui.setupUi(Ui_MainWindow_Ocean) ui.setFlowControl(oceanPV="SOL3", motorPV="SOL:galil:test:A", LS="XDS:LS") Ui_MainWindow_Ocean.show() app.establish_widget_connections(widget=Ui_MainWindow_Ocean) sys.exit(app.exec_()) ''' self.ui.lblAcquiring.linkActivated.connect(self.pri1) self.ui.lblAcquiring.linkHovered.connect(self.pri1) #self.ui.lblAcquiring.channel. self.ui.lblProgress.value_changed(0) self.ui.cmbAcquisition.send_value_signal.connect(self.pri1) '''
Double_clicked = 4 InputValue_mr = 5 #MuliRead PixelSize = 6 Directory = 7 InicialStatus = 8 Waiting = 9 NotReady = 10 NotSaved = 11 Finished = 12 NotTIFF = 13 NnotFound = 14 NameStructure = 15 hastag = 16 space = 17 nonegative = 18 sameName = 19 abortSuccess = 20 abortFailed = 21 FatalErro = 22 char = 23 if __name__ == "__main__": app = PyDMApplication(use_main_window=False) Ui_MainWindow_marccd = QtWidgets.QMainWindow() ui = ui_marccd() ui.setupUi(Ui_MainWindow_marccd) ui.setFlowControl() Ui_MainWindow_marccd.show() app.establish_widget_connections(widget=Ui_MainWindow_marccd) sys.exit(app.exec_())