mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-38792: Remove IDLE shell calltip before new prompt. (#17150)
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tal Einat <taleinat+github@gmail.com>
This commit is contained in:
parent
46874c26ee
commit
bfdeaa37b3
5 changed files with 9 additions and 3 deletions
|
@ -1292,6 +1292,7 @@ class PyShell(OutputWindow):
|
|||
self.text.insert("end-1c", "\n")
|
||||
self.text.mark_set("iomark", "end-1c")
|
||||
self.set_line_and_column()
|
||||
self.ctip.remove_calltip_window()
|
||||
|
||||
def write(self, s, tags=()):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue