The Text widget offers an advanced functionality compared with other widget classes. It displays multiple lines of editable text that can be indexed by lines and columns. Additionally, you can refer to ranges of text using tags, which may define a customized appearance and behavior.
Introducing the Text widget
Getting ready
The following application shows basic use of the Text widget, where you can dynamically insert and remove text and retrieve the selected content:
How to do it...
Apart from the Text widget, our application contains three buttons that call the methods...