def on_cancel(self): self._initialize() self.video_page.right_button.Enable() scanner_autocheck.cancel() if hasattr(self, 'wait_cursor'): del self.wait_cursor if self.exit_callback is not None: self.exit_callback()
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_unplugged(self): self.video_view.stop() scanner_autocheck.cancel() driver.disconnect() self.parent.on_exit(message=False)