(self, event)
| 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) |
nothing calls this directly
no test coverage detected