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

Method deactivate_restore

Lib/idlelib/parenmatch.py:69–74  ·  view source on GitHub ↗

Remove restore event bindings.

(self)

Source from the content-addressed store, hash-verified

67 self.is_restore_active = True
68
69 def deactivate_restore(self):
70 "Remove restore event bindings."
71 if self.is_restore_active:
72 for seq in self.RESTORE_SEQUENCES:
73 self.text.event_delete(self.RESTORE_VIRTUAL_EVENT_NAME, seq)
74 self.is_restore_active = False
75
76 def flash_paren_event(self, event):
77 "Handle editor 'show surrounding parens' event (menu or shortcut)."

Callers 1

restore_eventMethod · 0.95

Calls 1

event_deleteMethod · 0.45

Tested by

no test coverage detected