Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.