Input Boxes or Input Fields With TKinter and Python - Python Tutorial(2020) #5

preview_player
Показать описание
Entry widgets are the basic widgets of Tkinter used to get input, i.e. text strings, from the user of an application. This widget allows the user to enter a single line of text. If the user enters a string, which is longer than the available display space of the widget, the content will be scrolled. This means that the string cannot be seen in its entirety. The arrow keys can be used to move to the invisible parts of the string. If you want to enter multiple lines of text, you have to use the text widget. An entry widget is also limited to single font.

The syntax of an entry widget looks like this:

w = Entry(master, option, ...)

"master" represents the parent window, where the entry widget should be placed. Like other widgets, it's possible to further influence the rendering of the widget by using options. The comma separated list of options can be empty.

The following simple example creates an application with two entry fields. One for entering a last name and one for the first name.

Want to Learn how GRID and Positioning Works in TKinter -------

Want to learn how Label and Text Box works in TKinter ------------

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

Thanks a lot this playlist is really well done

GrowingEggplantion
Автор

Nice tutorial 👌👌 very very useful.
Both labels and buttons are same name. It's better i think to create different name for each label and buttons.

anokhautomation
Автор

Just what I have been desiring to learn. I would like to collaborate with you on some projects

nimzing
Автор

How to bring the entry box and button at the bottom?

UADC
Автор

e.get() not available for me, any substitute for that?

AdelHaiba
Автор

It shows-
my_label4=Label(root, text='welcome'+check_box.get()).grid(row=5, column=0)

AttributeError: 'NoneType' object has no attribute 'get'

mahmodulhasanrifath
Автор

If Your ".get( )" Function is not working, try writing ".pack( )" Function at end of def i.e
def click():
my_label = Label(root, text = "Hi, " + x.get())
my_label.pack()
x.pack()

mominh