Tkinter.Text.grab_set

Text.grab_set()

Set grab for this widget.

A grab directs all events to this and descendant widgets in the application.