Creating Input Fields With TKinter - Python Tkinter GUI Tutorial #4
HTML-код
- Опубликовано: 15 янв 2019
- How to Create Input Fields With TKinter and Python. In this video I'll show you how to create input fields using the entry widget in tKinter.
In this series I'll show you how to create graphical user interfaces for Python with Tkinter. TKinter comes with Python already, so there's nothing to install!
✅ Watch The Other Videos In This Python Playlist:
bit.ly/2UFLKgj
▶️ See More At:
Codemy.com
✅ Join My Facebook Group:
bit.ly/2GFmOBz
✅ Subscribe To My RUclips Channel:
bit.ly/2IGzvOR
▶️ Learn to Code at Codemy.com
Take $22 off with coupon code: youtube
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My RUclips Channel:
bit.ly/2UFLKgj bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
Never thought that Walter White will teach me Python Tkinter. Thank you!
Ha!
You're Goddamn right!
Well, yes! I thought the man in the thumbnail is Mr.White. Haha..😅😅😅
Yes, Walter White that hadn't choose the wrong path.
JESSE WE NEED TO CODE
Most people tries to make small series and skips many parts but you really said everything in detail in a way that even beginners can understand easily great man. I'm gonna recommend your videos to everyone. I wish i had seen these before.
Thanks! Glad you enjoyed them!
SO TRUE
completely agree ❤
I just searched input tkinter for my Jarvis program (switching GUI's) thank you.for that fantastic explenation
You are a great instructor and your sense of humor shows that you are a very friendly person.
Thanks!
i'm just trying to make a program in 3 days , out of time , without any help , i found this channel and this playlist SAVED ME A LOT ! Thank you very much
Glad you like it!
I love the way he says "Very cheap" for his package
ha
@@krypton1142 do you mean it worths more or less?
you are the best teacher which I found on youtube.
Because of like u people the poor people's children also learn like rich peoples children and becomes a shining star for their society.
Thanks, big FAN.
Thanks for watching!
This channel is criminally underrated
I heat that! Tell your friends ;-)
Ohh maan!! Its the best ever tutorial for Python I have ever watched.You are just awesome sir, explaining a big programming language just like a piece of cake.
Thank you! Glad you like them!
This is one of the best Tutorials...I'm gonna recommend this channel to all my friends...thanks for those amazing lectures sir 🙌
Thanks a ton!
aggree really he helps me
thank you so much! I really like your channel and easy to learn code's logic with your narration.
Glad you like them!
Hello John, I really have to thank you for this tutorial series. Most of the videos I watched were in german but you make it so clear, that I can follow along.
The way you explain things is very concise and still you have time to show some alternatives, which really gives the viewer a good picture about what tkinter and python has to offer. Liked and subscribed!
German? None of my videos are in German, but glad you liked them!
@@Codemycom Hello. I meant I watched only german tutorials from other youtubers, but you make it so clear that I can watch your videos even though they are in english.
Great job deserving of thanks
عمل رائع يستحق الشكر
Really helpful and easy to follow for beginners. Great!
Glad you're enjoying it!
Thanks, man
Your tutorials helped a lot
Sure thing, glad you liked them!
You are the best youtuber for gui dev in python with clear explanation ❤
Thanks!
From now on I will try to refer to concatenating things together by "smush"! That sounds way more entertaining. Thanks for all your videos!
everyone loves a good smush lol
Tudo muito bem explicado, obrigado!!!!!!!!!!!!!!!
amazing videos, and very clear explanations! Thanks for sharing your experience with us.
welcome
Hello Mr from Cyprus!
Excellent work!
I am going to recommend your videos to my students.
Thanks a lot!
Thank you! I appreciate it!
This tutorials are gonna help me a lot in my journey. Thank You Heisenberg🧠🙏🙏🙏
Happy to hear it
Thanks for the videos it is really simple to understand,than the other channels I watched. Keep rocking 😊😄.
Glad you liked it!
Hello John. I love the way you, step by step, are introducing elements of Tkinter. I closely follow your instructions and try to make small Tkinter programs in Thonny. Just to practice, practice and practice. And you know : Practice makes Perfect :)))
For sure!
thank you very much.This course about tkinter is very useful
Glad you like it!
What else can i say... thank you soooooo much. you the man.
Thanks!
Thank you so much thanks to you I was able to learn Tkinter in 6 hours enough to do my final project.
That's great!
Great videos, I'm learning a lot!
Thanks! I'm glad you're enjoying them!
you are a hero man really such a great explanation👍
Hey thanks!
Exactly what i was looking for
glad to hear it
thank you so much! its great
Glad you enjoyed it!
Thanks a lot, and I must say you are really amazing dude!
Thanks!
The way of teaching is really fantastic
Thanks!
Thanks sir, really superb👍👍👍
Thanks for watching!
Thank you so much for this highly helpful video:)
Glad you enjoyed it!
Thank you for teaching python Tkinter
It's my pleasure
smashed the like button. It was consensual.
lol
thank you for everything 💚💚💙💙from EGYPT
You're welcome!
i understood really well
Happy to hear
Thank you very much. I learnt a lot about tkinter. 🤭❤️
You're welcome
I very like this series video.
Glad you l8ke it!
Nice content over here! Liking it
Glad you enjoy it!
i defenetly smashed the like and subscribed you help me alot with my python
Thanks!
Awesome tutorial ,Thanks
Glad you enjoyed it!
It's great information for the user like me. How can we make any entry mandatory in tkinter in a survey.
Great work thanks a lot
Thanks for watching!
Thanks a lot!!!
Great' i am learning a lot
Glad to hear that
Love from India 😌😌😌
cool, I love input fields.
:-)
It was really helpful of me 😊.
Glad to hear it!
Thank you very much!!!!
You're welcome!
thank u ,making sense
Glad you liked it
You’re the best 🎉
thanks!
This is one of the most underrated video on youtube
thanks! tell your friends ;-)
Very cool video!!
Thank you!
Thank you so much bro
You're very welcome
Lesson check. Thanks.
welcome
Thank you! it's really useful series of videos. helped me a lot
Glad you like it!
Thanks for the vid
You bet
Thank You!!!
Welcome!
I love it.
thanks!
thanks man!
Sure thing
Thanks mate
sure thing
THIS HELPS
I'm glad
The man!
Thanks!
Excelent thankyou
Welcome!
thanks you are awesome
Thanks!
I will recommend your channel for everyone who ask 💙💚💙💚
Thanks! I appreciate that!
Thank you
welcome
Can you pls do a video on how to use tkinter with smtplib that would be really helpful and by the way amazing helpful video loved it!!
Awesome
Thanks!
very cool
thanks
good tutorial
thanks!
damn good man
Thanks!
I am a noob at tkinter thank you soo much for starting with the basics😇😇
Enjoy!
I am bored due to the lockdown and I hope I will be busy watching these tutorials :)
Glad to help!
excellent explanation. I wish you also do something on ML.
Will do soon
super
Thanks
Thats dude.
Great work John, thanks! Where can I find your books and other materials we get in case we suscribe?
You get those in the website when you subscribe
Oh my god, thank you god bless you!!!
i was looking for a way i can enter my name in a input box and so when i press a button it saves the entered name to that .txt file, it took me like a half year(with no results) thank you!!
btw... I subscribed ;)
-My english is not perfect but i hope you understood.
Glad I could help!
Ohhh great!!! File handling is awesome 😇😇😇
@@tapeshvashisth7726 ha
@@tapeshvashisth7726 Yeah i understand file handling really good when it comes to Python but that was the first time(yesterday) that i had to open, safe etc in tkinter.
@@holycow4889 I also have deep understanding with file handling 😅 I have made some projects on it for my school😊
I just sabotaged my laptop smashing the like button
awesome!
Sir I request you to please teach us how to add rounded entry fields in tkinter.
Not a bad idea
7:42 you know you're a programmer when start your count by 0
ha yep!
@@CodemycomIn Hindi "ha" means Yes,
Lol🤣
@@shivamshandilya5059 lol awesome!
@@Codemycom BTW your course is awesome 👍
@@shivamshandilya5059 thanks!
I did the same thing as you and I want to save the input into a variable. But e.get() only takes "Enter your name: " from the e.insert(0, "Enter Your Name: ") instruction. What should I do to save the name I am entering in the box to a variable, because name = e.get() gives me just the text "Enter Your Name"?
Thank you for the video..
Can we make an input with a specific choices? For example an input that has two choices (male and female).
Do you mean a drop down box? Sure...I'll cover that soon.
@@Codemycom will it be better to achieve this task by radio widget.
@@attaulmomin better is a relative term
@@Codemycom yep.
Hello, how do you verify if the input field is empty or with some character? , condition of not letting you go to the other Entry if the input field does not have a letter . Similar to google form (fill in a required input field)
Great series. I am watching now and doing everything step by step. Thanks so much. Just was surprised, why doesn't work 'height'? I can give for Entry just width, but no height. And font size doesn't work for me ! Do I need to install something extra???
There is no height attribute, but font will work. You likely have a typo.
how can i make the user to enter only a specific type on input i.e. INTEGER input or str
use an if statement to test if the input is an Integer, thru a warning if it is not
@@Codemycom thanks.Sir
Hey, please say how to do the below things. I need the below in my programs.
How to make number only text boxes? How to make text only text boxes? and finally how to limit characters in text boxes?
Pretty sure to limit characters in text boxes you can set them to a specific width and that prevents more than the widths worth of characters from being entered
THANKS FOR THE EPIC!!! SUPER HELPFUL!!!! AMAZING!!!!!! VIDEOSSSSSSSSSSSSSSSSS!!!!!!!!!?!?!??!?!?!?!?!?!?!
Welcome!
Do you know how to store that into a variable?
I`d like to create a Login and Password pop-up for users. You code helped me to get the logic behind it, but I`m not sure how to save that.
Save it to what?
Sorry I did not make myself clear. What I mean is, I'd like to store the input into a variable.
I discovered how to after a little search.
Btw, nice channel.
var = e.get()
Thank you for the tutorials. Just a question sir in this video, how to not duplicate the label that is being displayed? I'm thinking of just updating it instead of having a flood of labels?
you can use .config(text="whatever) on a label to update it.
@@Codemycom Thank you very much sir, I wasn't expecting a quick reply like that. It's a great help.
@@carljeffreyaustria486 Happy to help :-)
@@Codemycom Sir, referring from this video, should I put it under def myClick(): to make it update every time I push the button?
@@carljeffreyaustria486 Do whatever you like...try it and see.
Can we use placeholder in input field just like html form ? Thanks for this amazing video
you can .set() them.. so if it's called e: e.set(0, "whatever you want as placeholder text")
the 0 is the position in the entry box where you want to put the text.
@@Codemycom this does not work:
AttributeError: 'Entry' object has no attribute 'set'
@@usmaankhawaja1612 you need parenthesis... set.()
Hi, I'm fairly new with this but I was trying to put an auto clicker into a CustomTKinter GUI. I was wondering if there would be a way to have it expect the user to input a float rather than a string into the entry?
Not sure what you mean...you can convert any number to float using regular python.
while I am watching this, breaking bad is running inside my head :)
Is it Possible to pass a function with arguments in the command argument for a widget like a button etc.?
Thank You, Sir, I could discover Tkinkter easily after such a great video s provided by you,sir
Yes, absolutely. instead of command=thing(argument), use:
command=lambda: thing(argument)
@@Codemycom Thank you, sir.
@@rahularanger407 sure thing
you explain everthing crearly I learned a lot ! but I have a qestion
I typed text on Text widget(my input) so how can I displey it on another Text widget (my output) ?
I use get(‘1.0’ , ‘end’) function but it didn’t work
my_output = Label(root, text=my_input.get())
Codemy.com thank you ! it’s work 💕
@@Se_1364 Good :-)
I want a tkinter reference table. i.e. All of the methods and configurations for EVERY widget as well as ALL of the options for pack and grid. I can't find this or anything like it anywhere. Can Anyone here point me to an example?