In my source code for a project I am running I have a process that produces a list of strings. I am trying to put this list into a Tkinter listbox for easy sorting, but when I do the list is all inserted into one line and I can’t find a way to separate the individual words into a different line on the listbox. Any ideas I am open to anything. Below I have attach an example of what I am trying to do:
from Tkinter import *
app = Tk()
app.geomtery("500x700")
app.title("ListBox")
names = ["Greg", "Earl", "Harry", "Bob"]
box = Listbox(app)
# Right here is where I am stuck
box.insert(END, names)
box.pack()
app.mainloop()
very esay in python, no ?:
just add the item and not the list
and