def stop_scan(self):
self.btn_toggle.config(text="Stopping..", state=DISABLED)
ls = LoadingScreen(self, determinate=False)
threading.Thread(target=self._stop_scan, args=(ls,)).start()
self.wait_window(ls)
if self.stop_error:
self.update_started()
messagebox.showwarning('Operation timed out',
"Stop request timed out. If the issue persists, restart the application.",
parent=self)
else:
self.update_stopped()
评论列表
文章目录