diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-08-04 23:58:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-04 23:58:06 -0700 |
commit | 2474cef34cd50e603c674c4856a17e3da4af71b3 (patch) | |
tree | 7e6354a2ea5df3fc71e15305fce3e704c97bdfb5 /Lib/idlelib/calltip.py | |
parent | c01807436ab7c1ae9a3f6ecb955b28c2c743c4d2 (diff) | |
download | cpython-git-2474cef34cd50e603c674c4856a17e3da4af71b3.tar.gz |
bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)
* make CallTip and ToolTip sub-classes of a common abstract base class
* remove ListboxToolTip (unused and ugly)
* greatly increase test coverage
* tested on Windows, Linux and macOS
(cherry picked from commit 87e59ac11ee074b0dc1bc864c74fac0660b27f6e)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Diffstat (limited to 'Lib/idlelib/calltip.py')
-rw-r--r-- | Lib/idlelib/calltip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/calltip.py b/Lib/idlelib/calltip.py index 596d2bcb27..758569a45f 100644 --- a/Lib/idlelib/calltip.py +++ b/Lib/idlelib/calltip.py @@ -51,7 +51,7 @@ class Calltip: self.open_calltip(False) def refresh_calltip_event(self, event): - if self.active_calltip and self.active_calltip.is_active(): + if self.active_calltip and self.active_calltip.tipwindow: self.open_calltip(False) def open_calltip(self, evalfuncs): |