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

Method IsCoreBinding

Lib/idlelib/config.py:574–580  ·  view source on GitHub ↗

Return True if the virtual event is one of the core idle key events. virtualEvent - string, name of the virtual event to test for, without the enclosing '<< >>'

(self, virtualEvent)

Source from the content-addressed store, hash-verified

572 return keySet
573
574 def IsCoreBinding(self, virtualEvent):
575 """Return True if the virtual event is one of the core idle key events.
576
577 virtualEvent - string, name of the virtual event to test for,
578 without the enclosing '<< >>'
579 """
580 return ('<<'+virtualEvent+'>>') in self.GetCoreKeys()
581
582# TODO make keyBindings a file or class attribute used for test above
583# and copied in function below.

Callers 2

test_is_core_bindingMethod · 0.80

Calls 1

GetCoreKeysMethod · 0.95

Tested by 1

test_is_core_bindingMethod · 0.64