summaryrefslogtreecommitdiff
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-01-30 18:55:42 -0700
committerGitHub <noreply@github.com>2020-01-30 20:55:42 -0500
commitbfdeaa37b3df7466624c17f9450d2bd1c3d95edf (patch)
treeedc63f65219cf7c25425e19946bc48b396dbf489 /Lib/idlelib/pyshell.py
parent46874c26ee1fc752e2e6930efa1d223b2351edb8 (diff)
downloadcpython-git-bfdeaa37b3df7466624c17f9450d2bd1c3d95edf.tar.gz
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>
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-xLib/idlelib/pyshell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 065122dec7..d5b310ffd7 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -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: