multiple selection of cells
linda.s
samrobertsmith at gmail.com
Sun Nov 25 21:38:17 EST 2007
Hi,
I wonder how to hold the ctrl key and left button (button-1) to do
multiple selection of the following items?
Thanks,
Linda
import Tkinter
s = Tkinter.Scrollbar()
L = Tkinter.Listbox()
s.pack(side=Tkinter.RIGHT, fill=Tkinter.Y)
L.pack(side=Tkinter.LEFT, fill=Tkinter.Y)
s.config(command=L.yview)
L.config(yscrollcommand=s.set)
for i in range(30):
L.insert(Tkinter.END, str(i)*3)
Tkinter.mainloop()
More information about the Python-list
mailing list