Copying formatted text from Text widget in tkinter
问题 I'm working on an APA citation maker in Python using tkinter. I use the Text widget to display the citation once it's generated, but whenever I copy the text (using the ctrl+c shortcut, at the moment) it loses its formatting. Is there some way to copy formatted text (italicized, for instance) from the Text widget rather than unformatted text? 回答1: To copy formatted text to the clipboard, you need an interface between python and the system's clipboard which supports text formatting. I have