I have the output from using .dump() on a Text widget which uses formatting and I would like to use this to load it on another text widget. Is this possible or do I have to parse it back manually?
Example .dump() output: [('mark', 'current', '1.0'), ('text', 'Sample text', '1.0'), ('mark', 'tk::anchor1', '1.11'), ('mark', 'insert', '1.11'), ('text', '\n', '1.11')]
There is no built-in function to load that data in another text widget. You will have to write the code to parse it and reconstruct the data.
Is there a way to store and load formatted text from a text widget in Tkinter?