I just started coding 3 months ago and my first language was java and i learned with you, with your 12 hour course, then javaScript same thing(html,css also), now I am finishing the python one, i am happy i am building some things already, cheers from Brazil, thank you (c++ too;) )
You can do it in at least two ways. I used both in the code below def submit(): print(entryvalue.get()) print(lastNameEntry.get()) # grid() = geometry manager that organizes widget in a table-like structure in a parent display window = Tk() entryvalue = StringVar() # .grid() returns None so the variables are not useful Label(window, text="First name: ").grid(row=0, column=0) Entry(window, textvariable=entryvalue).grid(row=0, column=1) Label(window, text="Last name: ").grid(row=1, column=0) lastNameEntry = Entry(window) lastNameEntry.grid(row=1, column=1)
from tkinter import *
#grid() = geometry manager that organizes widgets in a table-like structure in a parent widget
window = Tk()
titleLabel = Label(window,text="Enter your info",font=("Arial",25)).grid(row=0,column=0,columnspan=2)
firstNameLabel = Label(window,text="First name: ",width=20,bg="red").grid(row=1,column=0)
firstNameEntry = Entry(window).grid(row=1,column=1)
lastNameLabel = Label(window,text="Last name: ",bg="green").grid(row=2,column=0)
lastNameEntry = Entry(window).grid(row=2,column=1)
emailLabel = Label(window,text="email: ",bg="blue").grid(row=3,column=0)
emailEntry = Entry(window).grid(row=3,column=1)
submitButton = Button(window,text="Submit").grid(row=4,column=0,columnspan=2)
window.mainloop()
I just started coding 3 months ago and my first language was java and i learned with you, with your 12 hour course, then javaScript same thing(html,css also), now I am finishing the python one, i am happy i am building some things already, cheers from Brazil, thank you (c++ too;) )
Great video bhaiya ❤❤(🇬🇧🇺🇸:-bro;
🇮🇳:-bhaiya)
thanks for watching E Com
@@BroCodez but sir i have a question, how i add password label
@@antaripchatterjee like when the characters are hidden in a password?
@@BroCodez yes yes..
@@BroCodez entry. config(show="*") ???
lovely
How can I get a value from an entry if I use grid?
You can do it in at least two ways. I used both in the code below
def submit():
print(entryvalue.get())
print(lastNameEntry.get())
# grid() = geometry manager that organizes widget in a table-like structure in a parent display
window = Tk()
entryvalue = StringVar()
# .grid() returns None so the variables are not useful
Label(window, text="First name: ").grid(row=0, column=0)
Entry(window, textvariable=entryvalue).grid(row=0, column=1)
Label(window, text="Last name: ").grid(row=1, column=0)
lastNameEntry = Entry(window)
lastNameEntry.grid(row=1, column=1)
loving this course, Bro, make a course about Django please, we will love it
Shahzod Sayfiddinov
hace 2 meses
Thank you Bro!
Thank you so much
the best
This is the video I have been looking for!
Hello, thanks for the infos and effort :)
❤
Hi, how use grid() for radiobutton?
hello bro thank you
Aprecciate!
Thank you Bro!
great !!
I thought you will be resting after the last marathon 😜
not at all! I have lots of motivation still
😇😇😇😇, that's you
thanks Mon Wil, you guys keep me going
👊
AMAZING!!! 🤩
My code is not working and it's not showing any errors
comment to support😀