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

Method var_changed_keybinding

Lib/idlelib/configdialog.py:1347–1357  ·  view source on GitHub ↗

Store change to a keybinding.

(self, *params)

Source from the content-addressed store, hash-verified

1345 self.var_changed_custom_name()
1346
1347 def var_changed_keybinding(self, *params):
1348 "Store change to a keybinding."
1349 value = self.keybinding.get()
1350 key_set = self.custom_name.get()
1351 event = self.bindingslist.get(ANCHOR).split()[0]
1352 if idleConf.IsCoreBinding(event):
1353 changes.add_option('keys', key_set, event, value)
1354 else: # Event is an extension binding.
1355 ext_name = idleConf.GetExtnNameForEvent(event)
1356 ext_keybind_section = ext_name + '_cfgBindings'
1357 changes.add_option('extensions', ext_keybind_section, event, value)
1358
1359 def set_keys_type(self):
1360 "Set available screen options based on builtin or custom key set."

Callers

nothing calls this directly

Calls 5

IsCoreBindingMethod · 0.80
GetExtnNameForEventMethod · 0.80
getMethod · 0.45
splitMethod · 0.45
add_optionMethod · 0.45

Tested by

no test coverage detected