]> granicus.if.org Git - python/commitdiff
Add close() method
authorGuido van Rossum <guido@python.org>
Fri, 16 Oct 1998 16:10:09 +0000 (16:10 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 16 Oct 1998 16:10:09 +0000 (16:10 +0000)
Tools/idle/ScrolledList.py

index 703cd0c3a31f160bfbe915db11283883ef5ff75e..ef2fde40571fad9d97096de84f5cb191f14326e8 100644 (file)
@@ -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")