summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-16 16:10:09 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-16 16:10:09 (GMT)
commit95ef4982ed1fd6c7f193d8e806e9e62dee8098fb (patch)
tree9ab5a32db5c7d97927d01cd1dc257382c62b3d6b /Tools
parente1dedc096e63afb186cb44239fe2add2995c1c13 (diff)
downloadcpython-95ef4982ed1fd6c7f193d8e806e9e62dee8098fb.zip
cpython-95ef4982ed1fd6c7f193d8e806e9e62dee8098fb.tar.gz
cpython-95ef4982ed1fd6c7f193d8e806e9e62dee8098fb.tar.bz2
Add close() method
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/ScrolledList.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/idle/ScrolledList.py b/Tools/idle/ScrolledList.py
index 703cd0c..ef2fde4 100644
--- a/Tools/idle/ScrolledList.py
+++ b/Tools/idle/ScrolledList.py
@@ -25,6 +25,9 @@ class ScrolledList:
# Set the focus
listbox.focus_set()
+ def close(self):
+ self.frame.destroy()
+
def clear(self):
self.listbox.delete(0, "end")