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

Method close

tools/python-3.11.9-amd64/Lib/idlelib/pyshell.py:1102–1115  ·  view source on GitHub ↗

Extend EditorWindow.close()

(self)

Source from the content-addressed store, hash-verified

1100 self.showprompt()
1101
1102 def close(self):
1103 "Extend EditorWindow.close()"
1104 if self.executing:
1105 response = messagebox.askokcancel(
1106 "Kill?",
1107 "Your program is still running!\n Do you want to kill it?",
1108 default="ok",
1109 parent=self.text)
1110 if response is False:
1111 return "cancel"
1112 self.stop_readline()
1113 self.canceled = True
1114 self.closing = True
1115 return EditorWindow.close(self)
1116
1117 def _close(self):
1118 "Extend EditorWindow._close(), shut down debugger and execution server"

Callers 5

beginMethod · 0.95
eof_callbackMethod · 0.95
restart_subprocessMethod · 0.45
kill_subprocessMethod · 0.45
close_debuggerMethod · 0.45

Calls 1

stop_readlineMethod · 0.95

Tested by

no test coverage detected