It's possible to put other widgets into tkinter text widgets with `textwidget.window_create()`. Those widgets can be used as text indexes. Manual page: `EMBEDDED WINDOWS` in http://tcl.tk/man/tcl8.7/TkCmd/text.htm