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

Method showprompt

Lib/idlelib/pyshell.py:1386–1398  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1384 self.interp.restart_subprocess(with_cwd=True)
1385
1386 def showprompt(self):
1387 self.resetoutput()
1388
1389 prompt = self.prompt
1390 if self.sys_ps1 and prompt.endswith(self.sys_ps1):
1391 prompt = prompt[:-len(self.sys_ps1)]
1392 self.text.tag_add("console", "iomark-1c")
1393 self.console.write(prompt)
1394
1395 self.shell_sidebar.update_sidebar()
1396 self.text.mark_set("insert", "end-1c")
1397 self.set_line_and_column()
1398 self.io.reset_undo()
1399
1400 def show_warning(self, msg):
1401 width = self.interp.tkconsole.width

Callers 8

close_debuggerMethod · 0.95
open_debuggerMethod · 0.95
endexecutingMethod · 0.95
beginMethod · 0.95
cancel_callbackMethod · 0.95
restart_subprocessMethod · 0.80
execfileMethod · 0.80
showsyntaxerrorMethod · 0.80

Calls 8

resetoutputMethod · 0.95
tag_addMethod · 0.80
update_sidebarMethod · 0.80
set_line_and_columnMethod · 0.80
endswithMethod · 0.45
writeMethod · 0.45
mark_setMethod · 0.45
reset_undoMethod · 0.45

Tested by

no test coverage detected