A simple calculator built using Python's Tkinter library. Supports basic arithmetic operations, square root (√), cube root (∛), and floor division.
- Basic operations:
+
,-
,*
,/
,%
,//
- Square root:
√x
- Cube root:
∛x
- Clear and evaluate buttons
- Responsive layout with dynamic resizing
- Python 3.7+
- Tkinter (comes pre-installed with most Python distributions)
- Clone the repository:
git clone https://github.com/your-username/python-gui-calculator.git cd python-gui-calculator
- Run the calculator:
python calculator_gui.py
📸 Screenshot
🧠 How It Works
- Expressions are typed using buttons.
- √x and ∛x are parsed using regular expressions and evaluated using helper functions.
- Errors are caught and displayed as "Error" in the entry field.
📈 Future Enhancements
- Add keyboard input support
- Scientific calculator mode
- Expression history
- Theme toggle (light/dark)
🤝 Contributing Pull requests are welcome! Feel free to fork and enhance the calculator.
📄 License This project is licensed under the MIT License.