This is my first graphical calculator built using Python and the Tkinter library. It performs basic arithmetic operations (+, -, *, /) and features a user-friendly interface. This project demonstrates my foundational understanding of Python programming and my ability to create interactive desktop applications.
Basic Arithmetic: Addition, Subtraction, Multiplication, Division. Graphical Interface: Intuitive buttons and display for easy interaction. Error Handling: Gracefully manages common issues like division by zero and invalid expressions. Clear Button: Resets the calculator display.
Python 3.x Tkinter: Python's standard GUI (Graphical User Interface) library.
- Prerequisites: Ensure you have Python 3.x installed on your machine. Tkinter comes bundled with Python, so no additional installations are needed.
- Download: Clone this repository or download the
gui_calculator.pyfile.git clone [https://github.com/alishba-khalid/python-gui-calculator.git](https://github.com/alishba-khalid/python-gui-calculator.git) cd python-gui-calculator - Run: Execute the script from your terminal:
python gui_calculator.py
- The calculator window will appear. Click the buttons to perform calculations!
This project was a significant milestone in my learning journey, especially in understanding GUI development, event handling, and integrating core Python logic into a visual application.
Future Ideas: Potentially add more advanced functions (e.g., square root, percentage), keyboard input support, or a history log.
GitHub: alishba-khalid
Built with ❤️ by Alishba