title: Retrieve the selection of a listbox or selectmode = extended in tkinter python
body: <p>I have a problem with retrieving the listbox selection when the selection mode is "extended". In fact my listbox items are scripts and I must be able to select multiple scripts and I can pass these scripts as  parameters to  my interpreter  whom role is to run these scripts one after the other and give me a result. the problem is that I can do everything only if select one script using this method:</p>
  
  <pre><code>def get_list(*event): 
   que2.put_nowait(script)
   seltext = liste.get(index)
   script=seltext 
   que2.put_nowait(script) 
  def get_port(event) 
   index = liste1.curselection()[0] 
   seltext = liste1.get(index) 
   nb_port=seltext[1] 
   que1.put_nowait(nb_port) 
  def call_interpreter1(): 
   b=que2.get(block=True) 
   a=que1.get(block=True) 
  print "prameters are :" ,a ,b ,"\r\n"
  c='python C:\\workspace\\Project_Interpreter\\ValidationTool-v1.0.py -s %s %s'%(b,a)
  ps=sp.Popen(['cmd','/K',c],creationflags=0,shell=False,stdout=PIPE,stderr=sp.STDOUT,stdin=PIPE)
  </code></pre>
  
  <p><sub> Translated with Google Translate </sub></p>