Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Tutorials listed in this section have not been reviewed nor are affliated by Code Forum. It is the sole responsbility of the authour to properly maintain and ensure information is accurate.

Python Introduction to a Simple Tkinter Calculator

Tkinter Calculator
In this tutorial we will build a simple calculator using tkinter and python.

Modules needed
  • tkinter
    • tkinter is installed by default with python
    • if it does not come with your version of python, it can be installed by
      • Ubuntu - sudo apt install python3-tk
      • MacOS - brew install python-tk
      • Windows - pip install tk
      • Note: Do a search for installing properly on your OS
  • decimal
Getting the framework setup
We will create two classes:
  • Window
  • Controller
and then get the tkinter window running
 
Back
Top Bottom