Exercise: Tk - Calculator one line


Write a Tk application that behaves like a one-line calculator. It has an entry box where one can enter an expression like "2 + 3" and a button. When the button is pressed the expression is calculated.

There is another button called "Quit" that will close the application.