Simply put, I'm using Tkinter for my graphic interface, and want to:
Read a text file.
Print "test" to make sure everything's going smoothly.
Clear the current list box.
Fill the listbox with every line in the text file.
Print "another test" to make sure I've made it this far.
with open("chat.txt", "a+") as chat: print("test") listbox.delete(first=0, last="END") for x in chat: listbox.insert("END", x) print("another test")
"test" gets printed but "another test" does not.