Ejemplo n.º 1
0
    def start(self):
        # holds frame buffers
        self.fb = {}
        self.current_frame = 0

        # cursor position
        self.cursor_x = 1.0
        self.cursor_y = 1.0

        self.mode = 'ginga'
        self.imexam_active = False
        self.imexam_chname = None

        # init the first frame(frame 0)
        self.init_frame(0)

        try:
            if self.addr.prot == 'unix':
                os.remove(self.addr.path)
        except:
            pass

        # start the data listener task, if appropriate
        #ev_quit = threading.Event()
        self.dataTask = iis.IIS_DataListener(self.addr,
                                             controller=self,
                                             ev_quit=self.ev_quit,
                                             logger=self.logger)
        self.fv.nongui_do(self.dataTask.mainloop)
Ejemplo n.º 2
0
Archivo: IRAF.py Proyecto: godber/ginga
 def start(self):
     try:
         if self.addr.prot == 'unix':
             os.remove(self.addr.path)
     except:
         pass
     
     # start the data listener task, if appropriate
     ev_quit = threading.Event()
     self.dataTask = iis.IIS_DataListener(
         self.addr, controller=self,
         ev_quit=ev_quit, logger=self.logger)
     self.fv.nongui_do(self.dataTask.mainloop)