multiple selection of cells

linda.s samrobertsmith at gmail.com
Mon Nov 26 03:38:17 CET 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