MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / ok

Method ok

tools/python-3.11.9-amd64/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

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected