The Entry widget is used to accept single-line text strings from a user.
If you want to display multiple lines of text that can be edited, then you should use the Text widget.
If you want to display one or more lines of text that cannot be modified by the user, then you should use the Label widget.
The Entry widget is a standard Tkinter widget used to enter or display a single line of text.
When to use the Entry Widget
The entry widget is used to enter text strings. This widget allows the user to enter one line of text, in a single font.
To enter multiple lines of text, use the Text widget.
Patterns #
To add entry text to the widget, use the insert method. To replace the current text, you can call delete before you insert the new text.
e = Entry(master)
e.pack()
e.delete(0, END)
e.insert(0, "a default value")
To fetch the current entry text, use the get method:
s = e.get()
#python2020 #tkintergui #madaboutpython #tkintertutorial #tkinterprojects #tkinterinpython #tkinterguitutorial
Watch video Custom Fonts and Resizing Entry Boxes in TKinter - Python Tutorial (2020) #17 online without registration, duration hours minute second in high quality. This video was added by user Anshuman Biswal 17 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,366 once and liked it 31 people.