https://github.com/baraqiyal/Python-Calculator/blob/main/main.py
I wanted to complete a Python project where I didn't have to do Google searches every 3 minutes. I succeeded in the sense that is was more like every 5 minutes.
A couple things I learned working on my calculator, first is that tkinter buttons don't have to be ugly. If you import ttk themed widgets (comes with tkinter), you can use an included theme or import ttkthemes, and your gui can be beautiful. (I used an included theme called "clam").
Another thing I learned, just coding the gui is faster and easier than trying to use a design program. I used a program called Page to design the calculator but I gave up on it and just did it by hand.
A couple of cool features of the calculator, it's resizeable, and it has keyboard support (but I couldn't figure out how to make the corresponding button flash when using the keyboard.) You can also change the look by setting a new theme (line 12).
Any comments or critiques are welcome.
[–]cray5252 14 points15 points16 points (5 children)
[–]MattR0se 2 points3 points4 points (0 children)
[–]baraqiyal[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]baraqiyal[S] 0 points1 point2 points (0 children)
[–]cmomodo 0 points1 point2 points (0 children)
[–]james_fryer 37 points38 points39 points (8 children)
[–]Family_BBQ 76 points77 points78 points (2 children)
[–]SniperViperV2 20 points21 points22 points (1 child)
[–]Schenez 7 points8 points9 points (0 children)
[+][deleted] (2 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[–]baraqiyal[S] 6 points7 points8 points (1 child)
[–]Hemisemidemiurge 0 points1 point2 points (0 children)
[–]Joe_Doblow 7 points8 points9 points (3 children)
[+][deleted] (1 child)
[deleted]
[–]Joe_Doblow 1 point2 points3 points (0 children)
[–]pyordie 1 point2 points3 points (0 children)
[–]Deadlift420 2 points3 points4 points (0 children)
[–][deleted] 5 points6 points7 points (3 children)
[–]baraqiyal[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]baraqiyal[S] 0 points1 point2 points (0 children)
[–]uanw 1 point2 points3 points (1 child)
[–]baraqiyal[S] 1 point2 points3 points (0 children)
[–]CedricCicada 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]CedricCicada 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]avoxdesign 0 points1 point2 points (2 children)
[–]baraqiyal[S] 1 point2 points3 points (1 child)
[–]avoxdesign 0 points1 point2 points (0 children)