Python Tkinter - How to insert text at the beginning of the text box? Python Tkinter - How to insert text at the beginning of the text box? tkinter tkinter

Python Tkinter - How to insert text at the beginning of the text box?


text_widget.insert('1.0', 'my status here.\n')

In short, the text widget can be indexed using a string notation of the form "lineNum.columnNum", as well as using the special indices like Tkinter.INSERT.

I would recommend reading effbot's documentation for the Tkinter text widget, or New Mexico Tech's Tkinter Handbook, which I've found has fewer examples and explanations, but is more complete as an API reference.