summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/calltip.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-08-05 06:47:28 (GMT)
committerGitHub <noreply@github.com>2018-08-05 06:47:28 (GMT)
commite65ec491fbaa14db61a6559eb269733616b0e7f0 (patch)
tree7a4a363ec0d8a07d42931266c922d7605de2dbdd /Lib/idlelib/calltip.py
parent2a2a3f56f510844a5266f74f347a3fa3baee8ba2 (diff)
downloadcpython-e65ec491fbaa14db61a6559eb269733616b0e7f0.zip
cpython-e65ec491fbaa14db61a6559eb269733616b0e7f0.tar.gz
cpython-e65ec491fbaa14db61a6559eb269733616b0e7f0.tar.bz2
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/calltip.py b/Lib/idlelib/calltip.py
index 596d2bc..758569a 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):