mirror of
https://github.com/python/cpython.git
synced 2025-11-29 06:22:10 +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
|
# Set the focus
|
||||||
listbox.focus_set()
|
listbox.focus_set()
|
||||||
|
|
||||||
|
def close(self):
|
||||||
|
self.frame.destroy()
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
self.listbox.delete(0, "end")
|
self.listbox.delete(0, "end")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue