25 lines
1000 B
Markdown
25 lines
1000 B
Markdown
**The Classic Simple Calculator **
|
|
|
|
This program is the beginning of a typical calculator. It was done to see what creating one in PySimpleGUI versus tkinter looked like.
|
|
|
|
A full-blown calculator was not completed. This was an exercise meant to duplicate the look and operation of the GUI, not the entire program. The things that are operational are:
|
|
|
|
* Numeric entry via buttons
|
|
* Numeric entry via keyboard
|
|
* Clear display using CE button
|
|
|
|
All of the other buttons are generating events, the logic hasn't been added to do somethiuung with the button click.
|
|
|
|
The goal was to duplicate this GUI
|
|
|
|
![SNAG-0592.jpg](/api/files/5df2b8659772785b095dba0b/snag-0592.jpeg "SNAG-0592.jpg")
|
|
|
|
On windows the PySimpleGUI code produced this program
|
|
|
|
![SNAG-0605.jpg](/api/files/5df2bc4f9772785b095dc880/snag-0605.jpeg "SNAG-0605.jpg")
|
|
|
|
|
|
<iframe src='https://trinket.io/embed/pygame/325ee1b208?start=result' width='100%' height='600' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen></iframe>
|
|
|
|
|