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

preview_player
Показать описание
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)

To fetch the current entry text, use the get method:

#python2020 #tkintergui #madaboutpython #tkintertutorial #tkinterprojects #tkinterinpython #tkinterguitutorial
Рекомендации по теме
Комментарии
Автор

easy and pretty nice tutorial thanks !

fathibensari
Автор

Do you know how to make a drop down menu to an Entry, such as the suggestions underneath the Google search line? Would help me so much.

cyberguygame
Автор

sir how can we use hindi or gujrati fonts use in python (use in entry box python)

akcandlestick
Автор

The error comes because you forgot to use a comma (, ) after height 1:29.

nishanth