Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtlw99/python-mac-cal
macOS Calculator in Python
https://github.com/jtlw99/python-mac-cal
calculator gnome gtk itworksonmymachine linux macos python3 tkinter tkinter-python zorinos
Last synced: 14 days ago
JSON representation
macOS Calculator in Python
- Host: GitHub
- URL: https://github.com/jtlw99/python-mac-cal
- Owner: jtlw99
- License: mit
- Created: 2024-10-30T02:32:40.000Z (14 days ago)
- Default Branch: main
- Last Pushed: 2024-10-30T02:58:51.000Z (14 days ago)
- Last Synced: 2024-10-30T05:06:56.126Z (14 days ago)
- Topics: calculator, gnome, gtk, itworksonmymachine, linux, macos, python3, tkinter, tkinter-python, zorinos
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# macOS Calculator in Python
This 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.
## Features
- Basic arithmetic operations: addition, subtraction, multiplication, and division.
- Toggle the sign of the last entered number.
- Clear the entry field with a single button press.
- Input validation to handle errors gracefully.
- Adjustable button layout and styles to resemble the macOS calculator.## Requirements
To run this application, you need:
- Python 3.x installed on your machine.
- Tkinter (usually included with Python standard libraries).## Installation
1. **Download the file in [Releases](https://github.com/jtlw99/python-mac-cal/releases)**
2. **Extract it**
3. **Open a Terminal window in the folder**
4. **Use this command:**```bash
python3 cal.py
```
5. **Voilà!**### Tested on ZorinOS 17 core
## Usage
- **I suggest using vinceliuice's [WhiteSur GTK theme](https://github.com/vinceliuice/WhiteSur-gtk-theme) to get the traffic light buttons like macOS.**
- Launch the application, and you will see the calculator interface.
- Use the buttons to perform calculations.
- You can use the `C` button to clear the input.
- The `±` button toggles the sign of the last entered number.
- The application limits the input length to ensure visibility.## Customization
Feel 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.
## Screenshots
![Screenshot from 2024-10-30 09-20-40](https://github.com/user-attachments/assets/c0afbcfe-52e2-42df-be73-91a8a060d617)
## Contributing
If you wish to contribute to this project, feel free to create a pull request or open an issue for any bugs or feature requests.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Acknowledgments
- Inspired by the macOS Calculator app design.
- Special thanks to the Python community for the support and libraries that made this possible.