(self)
| 1170 | self.top.quit() |
| 1171 | |
| 1172 | def readline(self): |
| 1173 | save = self.reading |
| 1174 | try: |
| 1175 | self.reading = True |
| 1176 | self.top.mainloop() # nested mainloop() |
| 1177 | finally: |
| 1178 | self.reading = save |
| 1179 | if self._stop_readline_flag: |
| 1180 | self._stop_readline_flag = False |
| 1181 | return "" |
| 1182 | line = self.text.get("iomark", "end-1c") |
| 1183 | if len(line) == 0: # may be EOF if we quit our mainloop with Ctrl-C |
| 1184 | line = "\n" |
| 1185 | self.resetoutput() |
| 1186 | if self.canceled: |
| 1187 | self.canceled = False |
| 1188 | if not use_subprocess: |
| 1189 | raise KeyboardInterrupt |
| 1190 | if self.endoffile: |
| 1191 | self.endoffile = False |
| 1192 | line = "" |
| 1193 | return line |
| 1194 | |
| 1195 | def isatty(self): |
| 1196 | return True |
nothing calls this directly
no test coverage detected