Add close() method

This commit is contained in:
Guido van Rossum 1998-10-16 16:10:09 +00:00
parent e1dedc096e
commit 95ef4982ed
1 changed files with 3 additions and 0 deletions

View 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")