https://github.com/ousttrue/pydear
https://github.com/ousttrue/pydear
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ousttrue/pydear
- Owner: ousttrue
- Created: 2021-12-12T18:22:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T05:43:23.000Z (over 3 years ago)
- Last Synced: 2026-02-23T22:58:22.594Z (4 months ago)
- Language: Python
- Homepage: https://ousttrue.github.io/pydear/
- Size: 2.17 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pydear 🦌
ImGui wrapper generated by clang.cindex.
- [github repository](https://github.com/ousttrue/pydear)
- [pypi](https://pypi.org/project/pydear/)
Works in conjunction with [PyOpenGL](https://pypi.org/project/PyOpenGL/) and [glfw](https://pypi.org/project/glfw/).
[examples](./examples)
## PreBuild wheel
Only Python-3.10 (Windows 64bit) is provided.
It was developed on Windows and worked on Linux as well.
## Included Bindings
A luajit-like style using ctypes.
Pointer arguments are passed by an array of length 1.
```python
p_open = (ctypes.c_bool * 1)(True)
ImGui.Begin('name', p_open)
```
Also, all C structs are defined as `ctypes.Struct` generated using clang.cindex.
```python
class ImGuiIO(ctypes.Structure):
_fields_=[
("ConfigFlags", ctypes.c_int32), # Int32Type: int,
("BackendFlags", ctypes.c_int32), # Int32Type: int,
```
The ImGUi backend is provided in a pure Python module `pydear.backends`.
Currently only glfw and OpenGL3 exist.
Most bindings are available, except for functions that have callback and va_list as arguments.
### ImGui-1.87 docking branch
### ImNodes
### NanoVG modified
## Detail
## Build
### Code generation
### Package check
```
py -m pip wheel .
twine check pydear-1.12.1-cp310-cp310-linux_x86_64.whl
```