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 checked on my side by just adding '1.0' and it start working
tex.delete('1.0', END)
you can also try this