I am writing a Python program in TKinter on Ubuntu to import and print the name of files from particular folder in Text widget. It is just adding f
TKinter
Text
I think this:
text.delete("1.0", tkinter.END)
Or if you did from tkinter import *
from tkinter import *
text.delete("1.0", END)
That should work