Re: Tkinter: select multiple entries in Listbox widget?
- From: Rob Williscroft <rtw@xxxxxxxxxxxxx>
- Date: Thu, 01 Jun 2006 14:19:47 -0500
Bernard Lebel wrote in news:mailman.6413.1149178158.27775.python-
list@xxxxxxxxxx in comp.lang.python:
Hello,
Is there an option or a way to allow the selection of multiple entries
in the Listbox widget? I could not find any, and would like to allow
the end user to select multiple entries.
When configuring use:
selectmode = "multiple"
e.g.:
import Tkinter as tk
root = tk.Tk()
a = tk.Listbox( root, selectmode = "multiple" )
for i in range(10):
a.insert( i, str(i) + " item" )
a.pack()
root.mainloop()
I found the answer here:
http://www.python.org/doc/life-preserver/ClassListbox.html
Though I had to guess the `= "multiple"` part.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
.
- Follow-Ups:
- Re: Tkinter: select multiple entries in Listbox widget?
- From: SuperHik
- Re: Tkinter: select multiple entries in Listbox widget?
- From: Bernard Lebel
- Re: Tkinter: select multiple entries in Listbox widget?
- References:
- Tkinter: select multiple entries in Listbox widget?
- From: Bernard Lebel
- Tkinter: select multiple entries in Listbox widget?
- Prev by Date: integer to binary...
- Next by Date: Re: Starting New Process
- Previous by thread: Tkinter: select multiple entries in Listbox widget?
- Next by thread: Re: Tkinter: select multiple entries in Listbox widget?
- Index(es):
Relevant Pages
|