Tkinter – Use characters/bytes offset as index for text widget
Tkinter – Use characters/bytes offset as index for text widget Question: I want to delete part of a text widget’s content, using only character offset (or bytes if possible). I know how to do it for lines, words, etc. Looked around a lot of documentations: https://www.tcl.tk/man/tcl8.6/TkCmd/text.html#M24 https://tkdocs.com/tutorial/text.html https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/text-methods.html https://web.archive.org/web/20120112185338/http://effbot.org/tkinterbook/text.htm Here is an example mre: import …