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

Method activate_restore

Lib/idlelib/parenmatch.py:62–67  ·  view source on GitHub ↗

Activate mechanism to restore text from highlighting.

(self)

Source from the content-addressed store, hash-verified

60 'hilite')
61
62 def activate_restore(self):
63 "Activate mechanism to restore text from highlighting."
64 if not self.is_restore_active:
65 for seq in self.RESTORE_SEQUENCES:
66 self.text.event_add(self.RESTORE_VIRTUAL_EVENT_NAME, seq)
67 self.is_restore_active = True
68
69 def deactivate_restore(self):
70 "Remove restore event bindings."

Callers 1

finish_paren_eventMethod · 0.95

Calls 1

event_addMethod · 0.45

Tested by

no test coverage detected