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

Method ok

Lib/idlelib/config_key.py:225–234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

223 self.key_string.set('')
224
225 def ok(self):
226 self.result = ''
227 keys = self.key_string.get().strip()
228 if not keys:
229 self.showerror(title=self.keyerror_title, parent=self,
230 message="No key specified.")
231 return
232 if (self.advanced or self.keys_ok(keys)) and self.bind_ok(keys):
233 self.result = keys
234 return
235
236 def keys_ok(self, keys):
237 """Validity check on user's 'basic' keybinding selection.

Callers 1

okMethod · 0.45

Calls 5

showerrorMethod · 0.95
keys_okMethod · 0.95
bind_okMethod · 0.95
stripMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected