mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Add close() method
This commit is contained in:
parent
e1dedc096e
commit
95ef4982ed
1 changed files with 3 additions and 0 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue