Skip to content

A simple calculator built using Python's Tkinter library. Supports basic arithmetic operations, square root (√), cube root (∛), and floor division.

License

Notifications You must be signed in to change notification settings

ragul-gowthamps/python-gui-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Python GUI Calculator

A simple calculator built using Python's Tkinter library. Supports basic arithmetic operations, square root (√), cube root (∛), and floor division.

🚀 Features

  • Basic operations: +, -, *, /, %, //
  • Square root: √x
  • Cube root: ∛x
  • Clear and evaluate buttons
  • Responsive layout with dynamic resizing

🛠 Requirements

  • Python 3.7+
  • Tkinter (comes pre-installed with most Python distributions)

📦 Installation

  1. Clone the repository:
    git clone https://github.com/your-username/python-gui-calculator.git
    cd python-gui-calculator
    
  2. Run the calculator:
    python calculator_gui.py
    

📸 Screenshot

GUI layout.

🧠 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.

About

A simple calculator built using Python's Tkinter library. Supports basic arithmetic operations, square root (√), cube root (∛), and floor division.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages