Explain the usage of python Tkinter Text in detail

  • 2020-12-10 00:45:55
  • OfStack

1. Set python Tkinter Text control text method

text.insert(index,string) index = x. y form,x for rows, y for columns

Insert data into line 1, ES17en.insert (1.0,'hello world')

2. Method of clearing python Tkinter Text control text

Clear from line 1 to the last line

text.delete(1.0,Tkinter.END)


Related articles: