- Install Tkinter according to your OS.
Windows:
python -m pip install tk
MacOS
brew install python-tk
Linux
- Debian based:
sudo apt-get install python3-tk
- Red Hat based:
sudo dnf install python3-tkinter
- Arch Linux:
sudo pacman -S tk
python main.py
- Showcase use of Tkinter library for creating desktop applications.
- Uses Observer pattern for notifying GUI of changes in the Calculator.