A Tk project was found on the web. It was a demo of simple restaurant management system that included a very simple caculator.
Note: It uses the Python eval function to do simple calculations.
Step 1. Download the partial code from
here (the code may be partial but the calculator works)
Step 2. Rename the file calculator.py
Step 3. Modify the code
The original project can be found at Restaurant Management System (YouTube)
1. the name has changed, 'Tkinter' vs 'tkinter'
2. Python2 "from Tkinter import *" - Python3 "from tkinter import *"
3. Python2 has tkFont - Python 3 has tkinter.font