OOP Calculator Part 2 - Object Oriented Tkinter 5

  Рет қаралды 14,800

Tkinter․com

Tkinter․com

Күн бұрын

In this video we'll finish building our Calculator app with Object Oriented Tkinter and Python.
In the last video we built out the GUI for our app.
In this video we'll create the functionality for the calculator...we'll make it calculate!
#tkinter #codemy #JohnElder
Timecodes
0:00​​ - Introduction
0:49 - Button Clicks Lambda
2:23 - Num_Press Function
3:45 - Math Sign Buttons
5:15 - Signage Function Logic
6:48 - Equal Button
7:43 - Mather Function Logic
8:51 - Do the Math!
10:16 - Create Label
11:25 - Output To Label
12:20 - Clear The Label
13:18 - Positive Negative
14:08 - Pos_Neg Logic
16:13 - Determin is Negative Number
18:03 - Conclusion

Пікірлер: 12
@TkinterPython
@TkinterPython 5 ай бұрын
▶ Watch Object Oriented Playlist ✅ FREE Tkinter Widget Book bit.ly/3Og44ey bit.ly/3K4qlZC ▶ See More At: ✅ Subscribe To My KZbin Channel: Tkinter.com bit.ly/3Pk1By4 ▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group: 30% off with coupon code: youtube bit.ly/2GFmOBz ▶ Get The Code For This Video bit.ly/3dCzz2K
@WFPB.Artist
@WFPB.Artist 14 күн бұрын
Thanks for your tutorials. They have been very helpful. I decided to see if I could simplify the pos_neg so I removed all of the if checking and put the three lines of code in a try ... except block with pass in the except. Worked like a charm and was much cleaner.
@sharkonet3636
@sharkonet3636 20 күн бұрын
Should probably have used a loop for the digit buttons, quite some repetivite code there :) But I guess for a demo this is fine and less confusing for beginners :p
@TkinterPython
@TkinterPython 15 күн бұрын
yup
@sharkonet3636
@sharkonet3636 15 күн бұрын
@@TkinterPython Btw tkinter is a very cool lib. Currently using it to build an AI playground for images manipulation 😉
@CodeWithArpitTech
@CodeWithArpitTech 5 ай бұрын
good
@TkinterPython
@TkinterPython 5 ай бұрын
Thanks
@randyfriend
@randyfriend 5 ай бұрын
Thanks for the explanations. Always great. If you entered "-12+" and selected the "+/-" button, wouldn't you still get the error changing the sign? Could you do the check for signs starting from the second character (ignore the first) and thus the check would for "any sign in a place other than the 1st character"?
@TkinterPython
@TkinterPython 5 ай бұрын
Sure, but we're nitpicking at this point. The thing works regardless, and the point of this isn't to build a sophisticated calculator. It's to mess around with OOP.
@annavalle9409
@annavalle9409 Ай бұрын
@@TkinterPython randyfriend was right! You wrote: "The thing works regardless". That's false: if you try to change, for example, the sign of -5 + 7 the error still appears. It always happens, when the equation starts with a minus sign, and contains at least one more operation sign.
@Bright-Great
@Bright-Great 5 ай бұрын
Create a project on how to covert ttk with multiple pages to exe
@user-uv1oq4bw6o
@user-uv1oq4bw6o 5 ай бұрын
Jony since kitho aa gya aa 😅😅😂😂
Create Custom Widgets and Components! - Object Oriented Tkinter 6
12:47
How Elmo Chong went from making high school beats to K-Pop hits
8:09
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 11 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 178 МЛН
Let's Build A Calculator - Object Oriented Tkinter 4
19:02
Tkinter․com
Рет қаралды 15 М.
Entry Boxes for Text - Intro To Tkinter 2
14:31
Tkinter․com
Рет қаралды 1,1 М.
An overview of tkinter layouts
18:02
Atlas
Рет қаралды 13 М.
I want to become a programmer. So I started my journey (week 13)
5:01
Intro To Object Oriented Tkinter - Object Oriented Tkinter 1
16:42
Tkinter․com
Рет қаралды 17 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 391 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 813 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 255 М.
Radio Buttons - Intro To Tkinter 6
14:11
Tkinter․com
Рет қаралды 577
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 11 МЛН