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

Method ok

Lib/idlelib/textview.py:143–147  ·  view source on GitHub ↗

Dismiss text viewer dialog.

(self, event=None)

Source from the content-addressed store, hash-verified

141 self.wait_window()
142
143 def ok(self, event=None):
144 """Dismiss text viewer dialog."""
145 if self.is_modal:
146 self.grab_release()
147 self.destroy()
148
149
150def view_text(parent, title, contents, modal=True, wrap='word', _utest=False):

Callers

nothing calls this directly

Calls 2

grab_releaseMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected