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

Method showprompt

tools/python-3.11.9-amd64/Lib/idlelib/pyshell.py:1389–1401  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1387 self.interp.restart_subprocess(with_cwd=True)
1388
1389 def showprompt(self):
1390 self.resetoutput()
1391
1392 prompt = self.prompt
1393 if self.sys_ps1 and prompt.endswith(self.sys_ps1):
1394 prompt = prompt[:-len(self.sys_ps1)]
1395 self.text.tag_add("console", "iomark-1c")
1396 self.console.write(prompt)
1397
1398 self.shell_sidebar.update_sidebar()
1399 self.text.mark_set("insert", "end-1c")
1400 self.set_line_and_column()
1401 self.io.reset_undo()
1402
1403 def show_warning(self, msg):
1404 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
endswithMethod · 0.80
tag_addMethod · 0.80
update_sidebarMethod · 0.80
set_line_and_columnMethod · 0.80
writeMethod · 0.45
mark_setMethod · 0.45
reset_undoMethod · 0.45

Tested by

no test coverage detected