diff options
| author | Zackery Spytz <zspytz@gmail.com> | 2020-01-31 01:55:42 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-31 01:55:42 (GMT) |
| commit | bfdeaa37b3df7466624c17f9450d2bd1c3d95edf (patch) | |
| tree | edc63f65219cf7c25425e19946bc48b396dbf489 /Lib/idlelib/calltip.py | |
| parent | 46874c26ee1fc752e2e6930efa1d223b2351edb8 (diff) | |
| download | cpython-bfdeaa37b3df7466624c17f9450d2bd1c3d95edf.zip cpython-bfdeaa37b3df7466624c17f9450d2bd1c3d95edf.tar.gz cpython-bfdeaa37b3df7466624c17f9450d2bd1c3d95edf.tar.bz2 | |
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/calltip.py')
| -rw-r--r-- | Lib/idlelib/calltip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/calltip.py b/Lib/idlelib/calltip.py index a3dda26..2e0db60 100644 --- a/Lib/idlelib/calltip.py +++ b/Lib/idlelib/calltip.py @@ -33,7 +33,7 @@ class Calltip: # See __init__ for usage return calltip_w.CalltipWindow(self.text) - def _remove_calltip_window(self, event=None): + def remove_calltip_window(self, event=None): if self.active_calltip: self.active_calltip.hidetip() self.active_calltip = None @@ -55,7 +55,7 @@ class Calltip: self.open_calltip(False) def open_calltip(self, evalfuncs): - self._remove_calltip_window() + self.remove_calltip_window() hp = HyperParser(self.editwin, "insert") sur_paren = hp.get_surrounding_brackets('(') |
