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

Method eof_callback

Lib/idlelib/pyshell.py:1220–1233  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

1218 return "break"
1219
1220 def eof_callback(self, event):
1221 if self.executing and not self.reading:
1222 return # Let the default binding (delete next char) take over
1223 if not (self.text.compare("iomark", "==", "insert") and
1224 self.text.compare("insert", "==", "end-1c")):
1225 return # Let the default binding (delete next char) take over
1226 if not self.executing:
1227 self.resetoutput()
1228 self.close()
1229 else:
1230 self.canceled = False
1231 self.endoffile = True
1232 self.top.quit()
1233 return "break"
1234
1235 def linefeed_callback(self, event):
1236 # Insert a linefeed without entering anything (still autoindented)

Callers

nothing calls this directly

Calls 4

resetoutputMethod · 0.95
closeMethod · 0.95
compareMethod · 0.45
quitMethod · 0.45

Tested by

no test coverage detected