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

Method var_changed_builtin_name

Lib/idlelib/configdialog.py:1311–1329  ·  view source on GitHub ↗

Process selection of builtin key set.

(self, *params)

Source from the content-addressed store, hash-verified

1309 self.load_keys_list(keyset_name)
1310
1311 def var_changed_builtin_name(self, *params):
1312 "Process selection of builtin key set."
1313 old_keys = (
1314 'IDLE Classic Windows',
1315 'IDLE Classic Unix',
1316 'IDLE Classic Mac',
1317 'IDLE Classic OSX',
1318 )
1319 value = self.builtin_name.get()
1320 if value not in old_keys:
1321 if idleConf.GetOption('main', 'Keys', 'name') not in old_keys:
1322 changes.add_option('main', 'Keys', 'name', old_keys[0])
1323 changes.add_option('main', 'Keys', 'name2', value)
1324 self.keys_message['text'] = 'New key set, see Help'
1325 else:
1326 changes.add_option('main', 'Keys', 'name', value)
1327 changes.add_option('main', 'Keys', 'name2', '')
1328 self.keys_message['text'] = ''
1329 self.load_keys_list(value)
1330
1331 def var_changed_custom_name(self, *params):
1332 "Process selection of custom key set."

Callers 1

Calls 4

load_keys_listMethod · 0.95
GetOptionMethod · 0.80
getMethod · 0.45
add_optionMethod · 0.45

Tested by

no test coverage detected