Custom Fonts and Resizing Entry Boxes in TKinter - Python Tutorial (2020) #17

Published: 17 June 2020
on channel: Anshuman Biswal
3,366
31

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


On this page of the site you can watch the video online Custom Fonts and Resizing Entry Boxes in TKinter - Python Tutorial (2020) #17 with a duration of hours minute second in good quality, which was uploaded by the user Anshuman Biswal 17 June 2020, share the link with friends and acquaintances, this video has already been watched 3,366 times on youtube and it was liked by 31 viewers. Enjoy your viewing!