This commit is contained in:
Xevion
2019-07-25 22:21:56 -06:00
parent 4d47e92610
commit 5948e26c4e
25 changed files with 1139 additions and 0 deletions

21
listbox.py Normal file
View File

@@ -0,0 +1,21 @@
from tkinter import *
root = Tk()
frame = Frame(root)
listbox = Listbox(frame)
def callback(event):
print('Callback', event)
listbox.delete(ACTIVE)
frame.bind("<Double-Button-1>", callback)
frame.pack()
listbox.pack()
for i in range(20):
listbox.insert(END, str(i))
root.mainloop()