How to insert value into tkinter entry without curly brackets or additional symbols?

前端 未结 2 1249
北海茫月
北海茫月 2021-01-23 20:53

So my issue is I\'m creating a form and currently I need entries into the tk.Entry to be able to be saved and loaded. I have it to the point where it works, however any entries

2条回答
  •  孤城傲影
    2021-01-23 21:31

    I solved the curly braces around entries when inserting data into a listboxes by just looping over the tuple ( a tuple was returned in my case from a SQL cursor.fetchall() ) and then selecting the index number for the listbox insert. That stripped the curly braces from displaying in the listbox.

    for columns in feedback:
        captured_columns_list.insert(END, columns[0])
    

提交回复
热议问题