diff options
author | Zackery Spytz <zspytz@gmail.com> | 2020-01-30 18:55:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 20:55:42 -0500 |
commit | bfdeaa37b3df7466624c17f9450d2bd1c3d95edf (patch) | |
tree | edc63f65219cf7c25425e19946bc48b396dbf489 /Lib/idlelib/editor.py | |
parent | 46874c26ee1fc752e2e6930efa1d223b2351edb8 (diff) | |
download | cpython-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/editor.py')
-rw-r--r-- | Lib/idlelib/editor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index c9f1a1625c..04c786dc52 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -328,7 +328,7 @@ class EditorWindow(object): text.bind("<<run-module>>", scriptbinding.run_module_event) text.bind("<<run-custom>>", scriptbinding.run_custom_event) text.bind("<<do-rstrip>>", self.Rstrip(self).do_rstrip) - ctip = self.Calltip(self) + self.ctip = ctip = self.Calltip(self) text.bind("<<try-open-calltip>>", ctip.try_open_calltip_event) #refresh-calltip must come after paren-closed to work right text.bind("<<refresh-calltip>>", ctip.refresh_calltip_event) |