{"id":18026282,"url":"https://github.com/jtlw99/python-mac-cal","last_synced_at":"2026-05-01T08:31:54.057Z","repository":{"id":260203135,"uuid":"880604733","full_name":"jtlw99/python-mac-cal","owner":"jtlw99","description":"macOS Calculator in Python","archived":false,"fork":false,"pushed_at":"2024-10-30T02:58:51.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T23:32:42.011Z","etag":null,"topics":["calculator","gnome","gtk","itworksonmymachine","linux","macos","python3","tkinter","tkinter-python","zorinos"],"latest_commit_sha":null,"homepage":"","language":null,"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/jtlw99.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-10-30T02:32:40.000Z","updated_at":"2024-10-30T02:59:34.000Z","dependencies_parsed_at":"2024-10-30T05:27:05.513Z","dependency_job_id":null,"html_url":"https://github.com/jtlw99/python-mac-cal","commit_stats":null,"previous_names":["jtlw99/python-mac-cal"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jtlw99/python-mac-cal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtlw99%2Fpython-mac-cal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtlw99%2Fpython-mac-cal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtlw99%2Fpython-mac-cal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtlw99%2Fpython-mac-cal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtlw99","download_url":"https://codeload.github.com/jtlw99/python-mac-cal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtlw99%2Fpython-mac-cal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32490810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calculator","gnome","gtk","itworksonmymachine","linux","macos","python3","tkinter","tkinter-python","zorinos"],"created_at":"2024-10-30T08:06:00.722Z","updated_at":"2026-05-01T08:31:54.043Z","avatar_url":"https://github.com/jtlw99.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# macOS Calculator in Python\n\nThis is a simple calculator application designed to mimic the look and functionality of the macOS Calculator. It is built using Python's Tkinter library and provides basic arithmetic operations along with a user-friendly interface. With the help of [WhiteSur GTK theme](https://github.com/vinceliuice/WhiteSur-gtk-theme) for the Traffic light buttons.\n\n## Features\n\n- Basic arithmetic operations: addition, subtraction, multiplication, and division.\n- Toggle the sign of the last entered number.\n- Clear the entry field with a single button press.\n- Input validation to handle errors gracefully.\n- Adjustable button layout and styles to resemble the macOS calculator.\n\n## Requirements\n\nTo run this application, you need:\n\n- Python 3.x installed on your machine.\n- Tkinter (usually included with Python standard libraries).\n\n## Installation\n\n1. **Download the file in [Releases](https://github.com/jtlw99/python-mac-cal/releases)**\n2. **Extract it**\n3. **Open a Terminal window in the folder**\n4. **Use this command:**\n\n   ```bash\n   python3 cal.py\n   ```\n5. **Voilà!**\n\n### Tested on ZorinOS 17 core\n\n## Usage\n\n- **I suggest using vinceliuice's [WhiteSur GTK theme](https://github.com/vinceliuice/WhiteSur-gtk-theme) to get the traffic light buttons like macOS.**\n- Launch the application, and you will see the calculator interface.\n- Use the buttons to perform calculations. \n- You can use the `C` button to clear the input.\n- The `±` button toggles the sign of the last entered number.\n- The application limits the input length to ensure visibility.\n\n## Customization\n\nFeel free to customize the appearance and functionality of the calculator. You can modify the button colors, fonts, and other settings in the `cal.py` file.\n\n## Screenshots\n\n![Screenshot from 2024-10-30 09-20-40](https://github.com/user-attachments/assets/c0afbcfe-52e2-42df-be73-91a8a060d617)\n\n## Contributing\n\nIf you wish to contribute to this project, feel free to create a pull request or open an issue for any bugs or feature requests.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Inspired by the macOS Calculator app design.\n- Special thanks to the Python community for the support and libraries that made this possible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtlw99%2Fpython-mac-cal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtlw99%2Fpython-mac-cal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtlw99%2Fpython-mac-cal/lists"}