Skip to content

sahandsbt/stack-calculator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ Basic Calculator 🖥️🧮

A sleek and user-friendly calculator desktop application built with PyQt5. This project showcases a modern UI design, custom error handling, and simple math features like square root 🧮 and sign toggling ➕➖.


🚀 Features

  • 🎨 Beautiful UI: Dark theme, rounded buttons, and color-coded operations for ease of use
  • ⚠️ Robust Error Handling: Informative popups guide you through invalid inputs
  • 🧩 Modular Code: Clean separation of UI, logic, and error handling for simple extensions
  • 🔒 Safe Calculations: Expression evaluation with preprocessing for square roots and secure eval usage

📸 Screenshot

Calculator UI Screenshot


💻 Installation

  1. Clone this repository:
git clone https://github.com/DShaKi/basic-calculator.git
cd basic-calculator 
  1. Install dependencies from requirements.txt (Python 3.7+ required):
pip install -r requirements.txt
  1. Run the app:
python main.py

🛠️ Project Structure

  • main.py — Main UI and application bootstrap
  • logic/ — Core calculator logic and expression processing
  • ui/ — PyQt5 layout, widgets, and styling
  • asssets/ — Images, icons, and screenshots
  • requirements.txt — Project dependencies

🤝 Contributing

Contributions warmly welcome! 💖 Please open an issue to report bugs or suggest features. Pull requests are encouraged! ✨


📄 License

Apache 2.0 License © 2025 — see the LICENSE file for details.


📬 Contact

Need help or want to share feedback? Reach out via GitHub Issues or email: shayan.ker85@gmail.com 📧

About

Calculator using postfix and prefix in stack.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%