24 lines
1,000 B
Markdown
24 lines
1,000 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
|
|
|
|

|
|
|
|
On windows the PySimpleGUI code produced this program
|
|
|
|

|
|
|
|
|
|
<iframe src='https://trinket.io/embed/pygame/325ee1b208?start=result' width='100%' height='600' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen></iframe>
|
|
|
|
|