In this video I’ll show you how to select all text and clear text for our text editor using tkinter and Python.
Selecting all text in a Tkinter text widget is fairly straight forward, we’ll just create a tag call sel that Tkinter knows how to handle.
Clearing the text from a text widget is even easier! We’ll just use the delete() function and set the range from 1.0 to end.
Add comment