summaryrefslogtreecommitdiffstats
path: root/Tools/idle/CallTips.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-25 16:02:22 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-25 16:02:22 (GMT)
commite689f0087ed3db8a5102ac4afdf147b50cd971e0 (patch)
treed60e0af3b16c9b82c9654f16a0d9010814e5d58d /Tools/idle/CallTips.py
parent7ea8f8404c8291563a77af1fd6acd7920d24b24e (diff)
downloadcpython-e689f0087ed3db8a5102ac4afdf147b50cd971e0.zip
cpython-e689f0087ed3db8a5102ac4afdf147b50cd971e0.tar.gz
cpython-e689f0087ed3db8a5102ac4afdf147b50cd971e0.tar.bz2
Add close() method that breaks a cycle.
Diffstat (limited to 'Tools/idle/CallTips.py')
-rw-r--r--Tools/idle/CallTips.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/idle/CallTips.py b/Tools/idle/CallTips.py
index 413d211..04eccde 100644
--- a/Tools/idle/CallTips.py
+++ b/Tools/idle/CallTips.py
@@ -32,6 +32,9 @@ class CallTips:
else:
self._make_calltip_window = self._make_tk_calltip_window
+ def close(self):
+ self._make_calltip_window = None
+
# Makes a Tk based calltip window. Used by IDLE, but not Pythonwin.
# See __init__ above for how this is used.
def _make_tk_calltip_window(self):