MCPcopy Index your code
hub / github.com/RustPython/RustPython / ok

Method ok

Lib/tkinter/simpledialog.py:186–198  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

184 # standard button semantics
185
186 def ok(self, event=None):
187
188 if not self.validate():
189 self.initial_focus.focus_set() # put focus back
190 return
191
192 self.withdraw()
193 self.update_idletasks()
194
195 try:
196 self.apply()
197 finally:
198 self.cancel()
199
200 def cancel(self, event=None):
201

Callers 15

mainFunction · 0.80
mainFunction · 0.80
run_rustpythonFunction · 0.80
parse_optsFunction · 0.80
complete_optMethod · 0.80
py_err_to_js_errFunction · 0.80
compressionMethod · 0.80
enum_certificatesFunction · 0.80
sock_optMethod · 0.80
sock_opMethod · 0.80
sendallMethod · 0.80

Calls 5

validateMethod · 0.95
applyMethod · 0.95
cancelMethod · 0.95
focus_setMethod · 0.80
update_idletasksMethod · 0.80

Tested by

no test coverage detected