RUVIDEO
Поделитесь видео 🙏

Calculator with GUI Using Python Tkinter (Less Than 200 lines of Code)

📁 Обучение 👁️ 16 📅 17.11.2023

Python project-based learning videos for absolute beginners!

We frequently use built-in programs like calculators without thinking about how they were designed or what's underneath the hood. It's essential for you to think about these things if you want to become a better software developer. The end goal of learning to program is to solve real-world problems and the best way to do so is by working on projects and putting your knowledge to use.

So, in this video, Soyuj demonstrates one such project that can help beginners get started with building projects in Python. By the end of this video, you will learn how to build your own calculator app in less than 200 lines of Python code. Not only that, you will learn to add advanced features like making the calculator usable from the keyboard and creating its executable file.

For this tutorial, we will use the built-in Tkinter module and take inspiration from the standard Windows Calculator App. Remember that the main takeaway from this video should not be just to build a calculator in Python but also to learn things that are often overlooked like how to structure your project and write clean readable Python code.

~
To follow along with this tutorial, you need to have a basic understanding of Python. For that, you can check our resources:

Python for Beginners (YouTube Playlist): https://www.youtube.com/playlist?list=PL98qAXLA6afuh50qD2MdAj3ofYjZR_Phn

Learn Python Programming (Text-based Tutorials): https://www.programiz.com/python-programming

Learn Python App (iOS and Android):
Download Link for Android: https://bit.ly/learn-python-android
Download Link for iOS: https://apple.co/3iPm6Sx

~
Links Mentioned in the Video:

Python Object-Oriented Programming Playlist: https://www.youtube.com/playlist?list=PL98qAXLA6afscIXQNuMl9zGHD9hJTuvQe

Pycharm IDE: https://www.jetbrains.com/pycharm/

Source Code in this Video: https://github.com/programiz/Calculator

~
Timestamps:
0:00 Intro
0:16 Final Calculator Preview
1:45 Building the Calculator
6:04 Creating the Frames
8:40 Adding the Display Labels
13:05 Adding the Digit Buttons
17:25 Adding the Operator Buttons
24:35 Adding Functionality to the Buttons
32:41 Enhancements to the Calculator
33:36 Adding Square and Square Root Buttons
36:50 Changing the Operator Symbols
37:55 Truncating the Results
38:21 Handling Exceptions like ZeroDivisionError
39:13 Using Calculator from the Keyboard
41:45 Creating an .exe file of our Calculator

Find Programiz elsewhere:
Facebook: https://www.facebook.com/programiz
Instagram: https://www.instagram.com/_programiz/
LinkedIn: https://www.linkedin.com/company/programiz
Website: https://www.programiz.com

#python #learnprogramming #programiz #pythonproject #projectbasedlearning

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Calculator with GUI Using Python Tkinter (Less Than 200 lines of Code)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.