tkinter.Text widget method dump add parameter
You can add parameters by setting keyword arguments named after those parameters to True
. It says this right in the documentation (with emphasis added by me):
The type of contents returned in filtered based on the keywordparameters; if 'all', 'image', 'mark', 'tag', 'text', or 'window' are given and true, then the corresponding items are returned.
For example, to set the tag
parameter you would do it like this:
text.dump("1.0", "end", tag=True)
Similarly, to get tag and text information you would do this:
text.dump("1.0", "end", tag=True, text=True)