So I have this code here which I am sure is trivial to my question as it is just question about readlines in general:
lines = file_in.readlines()
self.inputText.insert(1.0, lines,)
If I were to read in a text file, it would write like this to a text file
['Example Text'\n']
or something to that nature instead of what we really want which is:
Example Text
How do I avoid this problem?
readlines
returns a list of lines. To insert this into a text widget you can join those items with a newline, like so: