MCPcopy Index your code
hub / github.com/python/cpython / set_timeout_last

Method set_timeout_last

Lib/idlelib/parenmatch.py:168–175  ·  view source on GitHub ↗

The last highlight created will be removed after FLASH_DELAY millisecs

(self)

Source from the content-addressed store, hash-verified

166 self.editwin.text_frame.after(CHECK_DELAY, callme, callme)
167
168 def set_timeout_last(self):
169 """The last highlight created will be removed after FLASH_DELAY millisecs"""
170 # associate a counter with an event; only disable the "paren"
171 # tag if the event is for the most recent timer.
172 self.counter += 1
173 self.editwin.text_frame.after(
174 self.FLASH_DELAY,
175 lambda self=self, c=self.counter: self.handle_restore_timer(c))
176
177
178ParenMatch.reload()

Callers

nothing calls this directly

Calls 2

handle_restore_timerMethod · 0.95
afterMethod · 0.80

Tested by

no test coverage detected