예제 #1
0
 def loadequinox(self):
     self.slitmask.validated = False
     self.slitmask.add_equinox(dec_read(self.ui.lineEditMain_Equinox.text()))
     if self.slitmask.equinox == None:
         palette = self.setPalette('error')
         self.ui.lineEditMain_Equinox.setPalette(palette)
     else:
         palette = self.setPalette('normal')
         self.ui.lineEditMain_Equinox.setPalette(palette)
         self.ui.lineEditMain_Equinox.setText(str(self.slitmask.equinox))
         self.slitmask.outFoV()
예제 #2
0
 def loadequinox(self):
     self.slitmask.validated = False
     self.slitmask.add_equinox(dec_read(self.ui.lineEditMain_Equinox.text()))
     if self.slitmask.equinox == None:
         palette = self.setPalette("error")
         self.ui.lineEditMain_Equinox.setPalette(palette)
     else:
         palette = self.setPalette("normal")
         self.ui.lineEditMain_Equinox.setPalette(palette)
         self.ui.lineEditMain_Equinox.setText(str(self.slitmask.equinox))
         self.slitmask.outFoV()
예제 #3
0
 def loadCenDEC(self):
     self.slitmask.validated = False
     self.slitmask.add_center_dec(dec_read(self.ui.lineEditMain_CenDEC.text()))
     if self.slitmask.center_dec == None:
         palette = self.setPalette('error')
         self.ui.lineEditMain_CenDEC.setPalette(palette)
     else:
         palette = self.setPalette('normal')
         self.ui.lineEditMain_CenDEC.setPalette(palette)
         self.ui.lineEditMain_CenDEC.setText(str(self.slitmask.center_dec))
         self.slitmask.outFoV()
         self.updatetabs()
예제 #4
0
 def loadCenDEC(self):
     self.slitmask.validated = False
     self.slitmask.add_center_dec(dec_read(self.ui.lineEditMain_CenDEC.text()))
     if self.slitmask.center_dec == None:
         palette = self.setPalette("error")
         self.ui.lineEditMain_CenDEC.setPalette(palette)
     else:
         palette = self.setPalette("normal")
         self.ui.lineEditMain_CenDEC.setPalette(palette)
         self.ui.lineEditMain_CenDEC.setText(str(self.slitmask.center_dec))
         self.slitmask.outFoV()
         self.updatetabs()
예제 #5
0
 def loadpositionangle(self):
     #print self.ui.lineEditMain_PA.text()
     self.slitmask.validated = False
     self.slitmask.add_position_angle(dec_read(self.ui.lineEditMain_PA.text()))
     if self.slitmask.position_angle == None:
         palette = self.setPalette('error')
         self.ui.lineEditMain_PA.setPalette(palette)
     else:
         palette = self.setPalette('normal')
         self.ui.lineEditMain_PA.setPalette(palette)
         self.ui.lineEditMain_PA.setText(str(self.slitmask.position_angle))
         self.slitmask.outFoV()
         self.imagedisplay.rotate(self.slitmask.position_angle)
         self.updatetabs()
예제 #6
0
 def loadpositionangle(self):
     # print self.ui.lineEditMain_PA.text()
     self.slitmask.validated = False
     self.slitmask.add_position_angle(dec_read(self.ui.lineEditMain_PA.text()))
     if self.slitmask.position_angle == None:
         palette = self.setPalette("error")
         self.ui.lineEditMain_PA.setPalette(palette)
     else:
         palette = self.setPalette("normal")
         self.ui.lineEditMain_PA.setPalette(palette)
         self.ui.lineEditMain_PA.setText(str(self.slitmask.position_angle))
         self.slitmask.outFoV()
         self.imagedisplay.rotate(self.slitmask.position_angle)
         self.updatetabs()