You can put any Tkinter widget—even a frame containing other widgets—into a text widget. For example, you can put a fully functional button or a set of radiobuttons into a text widget.
Use the .window_create()
method on the text widget to add the embedded widget.
For the calling sequence and related methods, see Section 17.7, “Methods on Text
widgets”.