Share your repls and programming experiences

← Back to all posts
GUI calculator
jamie1001 (6)

This is a GUI calculator, it can add two numbers in 𝓈𝓉𝓎𝓁𝒾𝓈𝒽 way. It uses the Tkinter python module for the graphics.

Comments
hotnewtop
SCOTBUTZBACH (23)

When I press +, -, × or /, it clears the screen on the calculator, and doesn't add that symbol in the screen of the calculator.
You still get an upvote for effort.

jamie1001 (6)

@SCOTBUTZBACH ye im still trying to fix that, maybe come back in a few days. With the tkinter python module it doesnt allow you to use some of the normal python functions. Im working on the code at the moment, thanks for the upvote though!

jamie1001 (6)

@SCOTBUTZBACH hey again, I fixed it if you want to check it out again, also seen as though you were the first person to see it, you get to choose if it looks better as a dark theme or light theme calculator. just comment to tell me

SCOTBUTZBACH (23)

@jamie1001 It threw a SyntaxError. You didn't finish the code on line 108: Button_power = Button(root, text="b\na", padx=

jamie1001 (6)

@SCOTBUTZBACH yo thats coz im working on the code right now im adding powers and squareds and cubeds, if u know what i mean. go check it out now coz im finnished, lol its wierd the way u forked it right when i was typing that line

SCOTBUTZBACH (23)

@jamie1001 I didn't fork it. We all can see the code, as well as executing the program. But none of us can edit the code unless we fork it.

Also, the calculator is functional, but change all instances of int() to float(). It raises ValueErrors, but the code still executes.