'list values into entry widgets
I am trying to put list values into entry widgets, keep getting brackets and quotes.
lista = ['abc', 'def', 'ghi']
# These are normally strings, but can be integer
entrya = Entry(window, width=20)
entrya.insert(0, lista[0])
# This should put abc into entrya widget box, seems to put ['abc']
entrya.place(relx=0.1, rely=0.1)
entryb = Entry(window, width=20)
entryb.insert(0, lista[1])
entryb.place(relx=0.1, rely=0.3)
entryc = Entry(window, width=20)
entryc.insert(0, lista[2])
entryc.place(relx=0.1, rely=0.6)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
