{"id":26737446,"url":"https://github.com/fahadelahikhan/python-gui-calculator","last_synced_at":"2025-07-20T21:32:55.208Z","repository":{"id":247811747,"uuid":"826907180","full_name":"fahadelahikhan/Python-GUI-Calculator","owner":"fahadelahikhan","description":"Basic Calculator: A Python-based GUI calculator using Tkinter for simple arithmetic operations: addition, subtraction, multiplication, division, and percentage calculations. Easy-to-use interface for quick everyday calculations.","archived":false,"fork":false,"pushed_at":"2025-03-13T09:49:56.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T02:53:10.966Z","etag":null,"topics":["arithematic","basic-calculator-app","calculator","desktop-application","gui","mathematics","open-source","python","python-gui","python-programming","python-project","simple-calculator","tkinter","user-interface"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fahadelahikhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-10T16:06:31.000Z","updated_at":"2025-03-13T09:50:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f3af31c-6271-41cd-8168-0466b2191703","html_url":"https://github.com/fahadelahikhan/Python-GUI-Calculator","commit_stats":null,"previous_names":["fahadelahikhan/python-gui-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fahadelahikhan/Python-GUI-Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahadelahikhan%2FPython-GUI-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahadelahikhan%2FPython-GUI-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahadelahikhan%2FPython-GUI-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahadelahikhan%2FPython-GUI-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fahadelahikhan","download_url":"https://codeload.github.com/fahadelahikhan/Python-GUI-Calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahadelahikhan%2FPython-GUI-Calculator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266204514,"owners_count":23892362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arithematic","basic-calculator-app","calculator","desktop-application","gui","mathematics","open-source","python","python-gui","python-programming","python-project","simple-calculator","tkinter","user-interface"],"created_at":"2025-03-28T02:50:48.066Z","updated_at":"2025-07-20T21:32:55.185Z","avatar_url":"https://github.com/fahadelahikhan.png","language":"Python","readme":"# Python GUI Calculator 📱\n\n![Python Version](https://img.shields.io/badge/python-3.8%2B-blue)\n![License](https://img.shields.io/badge/license-MIT-green)\n\nA simple graphical user interface calculator implemented in Python using the Tkinter library.\n\n## 📜 About\nThis project demonstrates how to create a basic calculator with a graphical user interface using Python's Tkinter library. It's an excellent example for learning GUI programming basics and implementing mathematical operations in a user-friendly way.\n\n## ✨ Features\n- Basic arithmetic operations (addition, subtraction, multiplication, division)\n- Percentage calculations\n- Clear functionality\n- Error handling for invalid expressions\n- User-friendly interface\n- Responsive design\n\n## 🚀 Quick Start\n\n### Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/fahadelahikhan/Python-GUI-Calculator.git\n   cd Python-GUI-Calculator\n   ```\n\n2. Run the calculator:\n   ```bash\n   python Basic_Calculator.py\n   ```\n\n### Basic Usage\n```python\n# The calculator provides a graphical interface with buttons for numbers and operations\n# Example calculation: 5 + 3 * 2\n# Click the buttons in the following order:\n# 5 -\u003e + -\u003e 3 -\u003e * -\u003e 2 -\u003e =\n# The result will be displayed in the entry field\n```\n\n### Example Calculation\n```python\n# Calculate (5 + 3) * 2 using the calculator\n# Click sequence:\n# 5 -\u003e + -\u003e 3 -\u003e ) -\u003e * -\u003e 2 -\u003e =\n# Result: 16\n```\n\n## 📖 Documentation\n### How It Works\nThe calculator works by:\n1. Capturing user input through button clicks\n2. Building an expression string\n3. Evaluating the expression using Python's `eval()` function with safety checks\n4. Displaying the result or error message\n\nThe mathematical operations follow standard order of operations:\n```\nParentheses -\u003e Exponents -\u003e Multiplication/Division -\u003e Addition/Subtraction\n```\n\n## ⚖️ License\nDistributed under the MIT License. See [LICENSE](LICENSE) for details.\n\n---\n\n\u003e **Note**: This implementation is for educational purposes. Always be cautious when evaluating expressions from untrusted sources.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffahadelahikhan%2Fpython-gui-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffahadelahikhan%2Fpython-gui-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffahadelahikhan%2Fpython-gui-calculator/lists"}