def _on_device_unplugged(self, title="", description=""): ciclop_scan.stop() scanner_autocheck.cancel() laser_triangulation.cancel() platform_extrinsics.cancel() self.toolbar.update_status(False) driver.disconnect() dlg = wx.MessageDialog(self, description, title, wx.OK | wx.ICON_ERROR) dlg.ShowModal() dlg.Destroy()
def on_exit(self): laser_triangulation.cancel() self._initialize() if self.exit_callback is not None: self.exit_callback()
def on_reject(self): laser_triangulation.cancel() if self.exit_callback is not None: self.exit_callback() self.plot_panel.clear()