https://github.com/yummyweb/chocopy
A declarative way to build efficient macOS apps with Python.
https://github.com/yummyweb/chocopy
Last synced: about 1 month ago
JSON representation
A declarative way to build efficient macOS apps with Python.
- Host: GitHub
- URL: https://github.com/yummyweb/chocopy
- Owner: yummyweb
- Created: 2021-10-08T04:09:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-08T05:04:32.000Z (over 3 years ago)
- Last Synced: 2025-02-15T16:57:15.101Z (3 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chocopi
Chocopi introduces a new way to create declarative macOS applications efficiently. Chocopy utilizes the macOS Cocoa API under the hood.
All rendered UI elements are known as controllers, and they function using listeners, which is nothing but a function or a callback. Layouts are a combination of controllers and a system of positioning.
The following layout constricts have been implemented:
- Panels
- WindowsThe following controllers work:
- Button
- Label
- Text Input
- Slider
- Progress Bar
- Checkbox## Installation
Install Chocopi using pip:
```
pip install chocopi
```## API Reference
Chocopy: Main window object.
Args:
- title -> str
- location -> (x, y)
- size -> (width, height)set_max_size: Sets the maximum size for a window
Args:
- size -> (width, height)Check the `examples/` directory for more examples.