How to Add Label and Entry Box in Tkinter #5 | GUI in Python | Tkinter Tutorial | Widgets| SDPGuruji

preview_player
Показать описание
Python for Beginners, Python in Hindi, How to Add Label and Entry Box in Tkinter in Hindi, GUI in Python, Tkinter Tutorial

In this tutorial, we are going to see the different types of widgets. Among all, there are two very important and popular widgets called LABEL and ENTRY BOX. Also, we are going to cover the different attributes of the pack( ) method.
The label is used to display the text which we want to write. It specifies the container box. This widget is used to provide the message to the user which can be directly displayed to the user.
For creating a label, we need to follow the syntax:
var1 = Label (root, text= “User Name”)
The entry box widget is used to provide a single line text. It works as a textbox where we can write our information.
var2 = Entry (root, bd = 5)
where bd is the border of the entry box.
pack() method is used to set the labels or entry box’s position on the window. By default, the position is at the top. But the pack() method has four attributed and they are as follows:
1) Top
2) Bottom
3) Right
4) Left
Note: You can change and add the various attributes as per your preference.
Do practice this!!
And let us know your suggestions, queries, and reviews!
Happy Programming :)
-----------------------------------------------------------------------------------------------------------------------------------

If you have missed anything regarding the python, surf through these links below:

--------------------------------------------------------------------------------------------------------------------------------------

You’ll also find us here!!

--------------------------------------------------------------------------------------------------------------------------------------
For more such informative Python videos,
color the thumbs up button blue, share the videos, and yes don’t forget to hit the subscribe button and press the bell icon for remainders.
Stay Tuned!!!

#SDPGuruji
#TkinterInPython
#Tkinter
#GUIinPython
#PythonGUI
#label
#entry
#labelentryboxintkinter
#PythonTkinter
#TkinterLibrary
#SDPGurujiPython
#PythonSDPGuruji
#PythonTutorial
#Hindi
Рекомендации по теме
Комментарии
Автор

Its very important sir how to take input from user with the help of label and Entry Box.

dheerajpatil
Автор

This is an interesting widget in the Tkinter library.... Very nicely explained everything... 👍👍😊

bhaveshpatil
Автор

These tutorials are some of the best that I have seen out and cover a wide assortment of topics from beginner to advanced...Great work sir!!

aanchalbadgaiyya
visit shbcf.ru