Exemplo n.º 1
0
    def update_exec_button(self):
        if (self.connected):
            try:
                # read drawingarea
                running = (openmv.script_running() == 1)
                self.stop_button.set_sensitive(running)
                self.exec_button.set_sensitive(not running)
            except Exception as e:
                self.disconnect()
                self._update_title()

        return True
Exemplo n.º 2
0
    def update_exec_button(self):
        if (self.connected):
            try:
                # read drawingarea
                running = (openmv.script_running()==1)
                self.stop_button.set_sensitive(running)
                self.exec_button.set_sensitive(not running)
            except Exception as e:
                self.disconnect()
                self._update_title()

        return True