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

Опубликовано: 17 Июнь 2020
на канале: 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


Смотрите видео Custom Fonts and Resizing Entry Boxes in TKinter - Python Tutorial (2020) #17 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Anshuman Biswal 17 Июнь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,366 раз и оно понравилось 31 людям.