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

Method debounced_update_wrappers

GPTOCRGUI.py:570–580  ·  view source on GitHub ↗

防抖包装符更新

(self, *args)

Source from the content-addressed store, hash-verified

568 self.root.update_idletasks()
569
570 def debounced_update_wrappers(self, *args):
571 """防抖包装符更新"""
572 DEBOUNCE_TIME = 2.0 # 1秒防抖时间
573
574 # 取消之前的定时器
575 if self.debounce_timer:
576 self.debounce_timer.cancel()
577
578 # 创建新定时器
579 self.debounce_timer = threading.Timer(DEBOUNCE_TIME, self.update_wrappers)
580 self.debounce_timer.start()
581
582 def auto_start(self):
583 self.start_processing()

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected