title: python tkinter listbox entry format
body: <p>I am a "novice" python user. </p>
  
  <p>I have a listbox using tkinter and I want to format the list entries so they are aligned, and I have the following:</p>
  
  <pre><code>from Tkinter import *
  master = Tk()
  
  info=[  ['sue', 1, 'Argentina', 'Bsc'],
      ['peggy-sue', 17, 'U.K.', 'Bsc'],
      ['susie', 234, 'France', 'BA'] 
  ]
  
  listbox = Listbox(master, width=60)
  listbox.pack()
  
  listbox.insert(END, "{:&lt;15s}  {:&gt;5s}  {:&lt;25s}  {:&lt;5s}".format("Name","id","Nationality","Qual") )
  
  for i  in range(len(info)):
      item = "{:&lt;15s}  {:&gt;5d}  {:&lt;25s}  {:&lt;5s}".format(info[i][0],info[i][1],info[i][2],info[i][3])
      print item  # Gives nicely formatted lines
      listbox.insert(END, item)  #Lines are not nicely formatted in listbox
  
  mainloop()
  </code></pre>
  
  <p>Can anyone explain why the listbox entries are not nicely formatted as the print line is?</p>
  
  <p>I know about multi-column listboxes (e.g. <a href="https://stackoverflow.com/questions/5286093/display-listbox-with-columns-using-tkinter">Display Listbox with columns using Tkinter?</a>) and so I don't need a solution, I am interested in why things aren't working as I had expected.</p>
  
  <p>Thanks</p>