Finish Building A Simple Calculator App - Python Tkinter GUI Tutorial #7

preview_player
Показать описание
Finish Building A Simple Calculator App using TKinter and Python. In this video we'll continue to build out our simple calculator app using the stuff we've learned from the previous videos. We'll create the division, subtraction, and multiplication buttons using a basic python if statement.

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:

▶️ See More At:

✅ Join My Facebook Group:

✅ Subscribe To My YouTube Channel:

Take $22 off with coupon code: youtube
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:

Codemycom
Автор

Learning so much. Your down to earth manner ( including non editing out of occasional mistakes ) and good humour makes it all the more enjoyable. So big thanks!

GavenIsaacs
Автор

I took this calculator making as a challenge. And before watching you, I successfully made it.

I grabbed the input as a string using get(). Like "2+6*7" or whatever.. and then using eval(), I calculated the result. That was a little smart calculator 😊... All Thanks To Your Lovely Tutorials.

nikhilbhardwaj
Автор

Thank you for providing such videos for 'free'.
Loved how you taught us to build the fully functional calculator!
But there is are some problems that you might face while using the calculator.
You can't perform calculations on floats.
And if you divide something by zero it will give you an error.
This is how you can solve both of these problems-

1. Just change int into float.
2. You can put the divide function into a try block and perform exception handing on it.

Hope this helped you

khushidhingra
Автор

Man you are insane!!!!
Hey, can you believe it I developed my own GUI calculator.!!!

sreeharieditography
Автор

I tired smashing the like button but ended up breaking my laptop screen. Now I can't code anything.


Joking aside, loved the super helpful tutorial!

luke_miller
Автор

John, wanted to say ... keep up the good work. Short, sweet, simple ... always a winning formula. This is my first Python GUI effort and I'm glad I took a look. I can already see how to build some simple apps for "admin" type tasks. I haven't looked ahead, but I'm hoping you show us how to package this up for distro. I'm a data engineer so my GUI dev skills are a bit weak. In any case, thanks.

mikem
Автор

Hey thank you for such helpful and earnest videos. You've been of great assistance in starting to build my logic in using the tkinter module

adarshtiwari
Автор

Thanks ...all makes sense ..no classes ..great.Easy conversion for Python 2 or 3

johnpro
Автор

Best video course on python. super easy to follow and understand

codyhowell
Автор

Olá, sou Brasileiro, estou começando na linguagem Python, estou gostando muito da sua didática, quero aprender mais, parabéns.

ricardogalvao
Автор

great tutorials...but for this one i have a question..cant we define global variable math once and use it thorughout in various functions?

ayushshaw
Автор

Great explanation and gave me a few ideas for my own applications. I would suggest, though, that all the repeated code within the button_add, button_subtract, etc. functions be merged into another function to avoid duplication. All you need to do is set the global math in each of them and then hand off to the common function.

Thanks for your efforts in explaining Python.

BillGirimonti
Автор

Totally binge watching these right now. Please don't tell everyone how much of a nerd I am...

discsanddata
Автор

im chain whatching this tutorial. Its amazing. Thank you for your help

janpaweii
Автор

Hi Sir, your work is great and specifically this course is very good and i have been learning tkinter here only.
There is a suggestion that you might want to entertain: if you would stay more confident and less doubtful in your codes, that would lead to the students also being confident in your work.
Thank You

lakshjain
Автор

Awesome tutorial!! Thank you for being so helpful. I finally got it all hatched out.

meltonenterprises
Автор

great tutorials, now am trying to execute all your tkinter projects and i had some issues with the int(f_number) whenever the answer is converted to a float. i decided to use float instead and it works well.. Thanks ones again.

wingielee
Автор

Beautifully explained. Learning and enjoying alot! Thanks!

alihabib
Автор

Great tutorial! It really helped a lot, especially since I'm an absolute beginner. I noticed a small problem: if the user clicks the equal button before doing anything else the program gives an error since we haven't defined this eventuality in the button_equal function and it doesn't recognize the variable 'math'. I solved this by creating another global variable called 'math' at the very first lines of the whole program and gave it the value 0 (it could be any value) so that, if the equal button is pressed with no reason nothing happens and the program doesn't crash. I know there wouldn't be any reason to just randomly click the equal button but it still is a possibily that the users does that so I figured this is a good way to prevent everything from crashing :)

ileniavinciguerra