I've been looking for this here but haven't been able to find an answer that fits my case:
I have a tkinter GUI consisting in a button and a Text (a textbox). You write the whole text in the textbox, then press the button and it uses the get() method on the textbox. Now, here comes the problem: get() returns a big string, and I need a list. How do I turn the information in the textbox into a list?
I am trying to make a GUI for someone else's code. In that program, the text is not inserted into a textbox (because there's no GUI) but rather into a file. The program then uses a for statement and the readlines() method to sucessfully separate the text into smaller chunks.
The problem is that, in my case, the parsing function is getting a single string, not a list, so it's not working at all.
any help would be appreciated.