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()
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()
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()
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()
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()
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()