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

Method flash_paren_event

Lib/idlelib/parenmatch.py:76–81  ·  view source on GitHub ↗

Handle editor 'show surrounding parens' event (menu or shortcut).

(self, event)

Source from the content-addressed store, hash-verified

74 self.is_restore_active = False
75
76 def flash_paren_event(self, event):
77 "Handle editor 'show surrounding parens' event (menu or shortcut)."
78 indices = (HyperParser(self.editwin, "insert")
79 .get_surrounding_brackets())
80 self.finish_paren_event(indices)
81 return "break"
82
83 def paren_closed_event(self, event):
84 "Handle user input of closer."

Callers 2

test_paren_stylesMethod · 0.80
test_paren_cornerMethod · 0.80

Calls 3

finish_paren_eventMethod · 0.95
HyperParserClass · 0.90

Tested by 2

test_paren_stylesMethod · 0.64
test_paren_cornerMethod · 0.64