MCPcopy Create free account
hub / github.com/T-duality/PillOCR-python / quit_app

Method quit_app

GPTOCRGUI.py:826–832  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

824 self.root.deiconify()
825
826 def quit_app(self):
827 self.unregister_hotkey() # 取消热键注册
828 self.unregister_screenshot_listener() # 取消截图监听
829 self.processor.stop()
830 if self.icon:
831 self.icon.stop()
832 self.root.destroy() # 修改为 destroy 以立即关闭窗口和主循环
833
834 def update_icon_status(self, status):
835 if hasattr(self, 'icon') and self.icon and self.icon._running:

Callers

nothing calls this directly

Calls 3

unregister_hotkeyMethod · 0.95
stopMethod · 0.80

Tested by

no test coverage detected