Activity

vg

The calc is done! Since last time, all the number buttons have been added, and they’ve been lined in up a grid pattern. I kept the 4 basic operators, and to keep the grid aligned/balanced, I added 2 extra buttons: Square root and a decimal button! I also made sure that any invalid operations with the square root would result in an error!

Attachment
Attachment
Attachment
0
vg

Learned about spacing using .pack(pady = 5) and figured out how to take a user input that works for all operators! Used Try and Except blocks in all of the operator code as well to exclude value error and divide by 0! Next, I want to make the UI look more like the windows calculator, so that includes: having buttons for numbers 0-9, buttons for clearing, and also having a button for “=”.

Attachment
Attachment
0
vg

Learned how to import and use a few functions of the Tkinter module! So far, the buttons for the operands ‘+’, ‘-’, ‘x’, and ‘/’ will show up, but not function as intended.

Attachment
0
vg

I’m working on my first project! This is so exciting. I can’t wait to share more updates as I build.

Attachment
0