multiple selection of cells

Discussion in 'Python' started by linda.s, Nov 26, 2007.

  1. linda.s

    linda.s Guest

    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()
     
    linda.s, Nov 26, 2007
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.