Tk Project #4

Introduction

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.

Project Steps

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)

Notes

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

After it is working try adding the following...

  1. '(' and ')' buttons
  2. 'Quit' button
  3. Decimal point (.) button