示例#1
0
    def exit(self):
        if self.ids.detector.capture is not None:
            self.ids.detector.capture.release()
            self.ids.detector.analysisThead.join()
        self.ids.detector.server.quit()

        EventLoop.close()
示例#2
0
    def tearDown(self):
        super().tearDown()
        EventLoop.close()

        if self.console_logger:
            logging.getLogger('').removeFilter(self.console_logger)
            self.console_logger = None
示例#3
0
 def tearDown(self):
     super().tearDown()
     EventLoop.close()
示例#4
0
 def doexit(self):
     global capture
     if capture != None:
         capture.release()
         capture = None
     EventLoop.close()
示例#5
0
 def tearDown(self):
     self.mc.stop()
     self.clock.unschedule(self.mc_task)
     super().tearDown()
     EventLoop.close()
示例#6
0
 def back_setting(self):
     if self.cam is not None:
         self.cam.release()
         self.cam = None
     EventLoop.close()
     sm.current = 'setting_screen'
示例#7
0
    def cam_stop(self):
        if self.cam is not None:
            self.cam.release()
            self.cam = None

        EventLoop.close()
示例#8
0
 def exit(self):
     EventLoop.close()