From 4c28886ea704e8e734fe0b6c86d5863507668ab4 Mon Sep 17 00:00:00 2001 From: "paolo.cinquegrana@elettra.eu" <paolo.cinquegrana@elettra.eu> Date: Wed, 7 Jun 2023 17:07:48 +0200 Subject: [PATCH] modificata gestione layout tab active beamline --- src/SluSourceMonitor.py | 92 ++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/src/SluSourceMonitor.py b/src/SluSourceMonitor.py index 3e3beae..aaff6ce 100644 --- a/src/SluSourceMonitor.py +++ b/src/SluSourceMonitor.py @@ -1162,10 +1162,10 @@ class MainWindow(QDialog): risposta_calendario = '' self.beamlineattiva.setText(risposta_calendario) self.linea = risposta_calendario - if self.linea == 'LDM': - self.tab13.show() - else: - self.tab13.hide() +# if self.linea == 'LDM': +# self.tab13.show() +# else: +# self.tab13.hide() ####8 log try: risposta_archiviatore = sacco['archiviatore'].context @@ -2331,44 +2331,44 @@ class MainWindow(QDialog): self.monitor_vacuum.setStyleSheet("background-color: rgb(0, 255, 0)") self.contienitab.setTabText(4, "Vacuum") ####12 ldm - if self.contienitab.currentIndex() == 8: - try: - tmp = sacco['ldm_kom1'].read_attributes(['Position_X', 'Position_Y']) - self.LDM_kom1_rx.setText(str(round(tmp[0].value, 4))) - self.LDM_kom1_ry.setText(str(round(tmp[1].value, 4))) - except: - self.LDM_kom1_rx.setText('#####') - self.LDM_kom1_ry.setText('#####') - try: - tmp = sacco['ldm_kom2'].read_attributes(['Position_X', 'Position_Y']) - self.LDM_kom2_rx.setText(str(round(tmp[0].value, 4))) - except: - self.LDM_kom2_rx.setText('#####') - self.LDM_kom2_ry.setText('#####') - try: - self.LDM_rots1_r.setText(str(round(sacco['ldm_rots1'].UserPosition, 3))) - except: - self.LDM_rots1_r.setText('#####') - try: - self.LDM_rots2_r.setText(str(round(sacco['ldm_rots2'].UserPosition, 3))) - except: - self.LDM_rots2_r.setText('#####') - try: - self.LDM_rots3_r.setText(str(round(sacco['ldm_rots3'].UserPosition, 3))) - except: - self.LDM_rots3_r.setText('#####') - try: - self.LDM_trls2_r.setText(str(round(sacco['ldm_trls2'].UserPosition, 3))) - except: - self.LDM_trls2_r.setText('#####') - try: - self.LDM_feedback1_state.setText(str(sacco['ldm_fb1'].State())) - except: - self.LDM_feedback1_state.setText('#####') - try: - self.LDM_feedback2_state.setText(str(sacco['ldm_fb2'].State())) - except: - self.LDM_feedback2_state.setText('#####') +# if self.contienitab.currentIndex() == 8: + try: + tmp = sacco['ldm_kom1'].read_attributes(['Position_X', 'Position_Y']) + self.LDM_kom1_rx.setText(str(round(tmp[0].value, 4))) + self.LDM_kom1_ry.setText(str(round(tmp[1].value, 4))) + except: + self.LDM_kom1_rx.setText('#####') + self.LDM_kom1_ry.setText('#####') + try: + tmp = sacco['ldm_kom2'].read_attributes(['Position_X', 'Position_Y']) + self.LDM_kom2_rx.setText(str(round(tmp[0].value, 4))) + except: + self.LDM_kom2_rx.setText('#####') + self.LDM_kom2_ry.setText('#####') + try: + self.LDM_rots1_r.setText(str(round(sacco['ldm_rots1'].UserPosition, 3))) + except: + self.LDM_rots1_r.setText('#####') + try: + self.LDM_rots2_r.setText(str(round(sacco['ldm_rots2'].UserPosition, 3))) + except: + self.LDM_rots2_r.setText('#####') + try: + self.LDM_rots3_r.setText(str(round(sacco['ldm_rots3'].UserPosition, 3))) + except: + self.LDM_rots3_r.setText('#####') + try: + self.LDM_trls2_r.setText(str(round(sacco['ldm_trls2'].UserPosition, 3))) + except: + self.LDM_trls2_r.setText('#####') + try: + self.LDM_feedback1_state.setText(str(sacco['ldm_fb1'].State())) + except: + self.LDM_feedback1_state.setText('#####') + try: + self.LDM_feedback2_state.setText(str(sacco['ldm_fb2'].State())) + except: + self.LDM_feedback2_state.setText('#####') if self.somethingred != 0: self.globallarm.setText('Alarm ON') self.globallarm.setStyleSheet("background-color: rgb(255, 0, 0)") @@ -2384,10 +2384,10 @@ class MainWindow(QDialog): self.linea = nuovalinea self.beamlineattiva.setText(str(self.linea)) self.autodeterminazionedeipupoli = 1 - if self.linea == 'LDM': - self.tab13.show() - else: - self.tab13.hide() +# if self.linea == 'LDM': +# self.tab13.show() +# else: +# self.tab13.hide() def apripss(self): os.system('/runtime/bin/laserpss -title Laser_safety_system &') -- GitLab