A simplified wrapper for Dear ImGui and GLFW
Project description
Ara_imgui
Ara_imgui is a lightweight and easy-to-use wrapper around Dear ImGui using Python and GLFW. It simplifies GUI application development with ImGui by providing a convenient interface for managing windows, fonts, and application lifecycle.
Features
- Simple ImGui app launch with a single
runfunction - Support various themes
- System or custom font loading, including Cyrillic support
- Ready-to-run examples included in the
examplesfolder
Installation
pip install ara_imgui
⚠️ Make sure you have Python 3.7+ and OpenGL support (e.g., via GPU drivers on Windows).
Usage
Basic example
from ara_imgui import App, imgui
app = App("Hello world example")
def gui():
imgui.text("Hello, world!")
if imgui.button("Click me"):
print("Clicked!")
app.run(gui)
Custom fonts and themes
from ara_imgui import App, imgui
font_path = R"C:\Windows\Fonts\Arial.ttf"
app = App("Font Example")
app.apply_theme("cherry")
app.load_font(font_path, font_size=20)
def gui():
imgui.text("Sample text with custom font")
app.run(gui)
Examples
See the examples/ folder:
hello_world.py— Basic "Hello, world!" with a button.basic_window.py— Simple window with input field.custom_font.py— Font and multilingual text rendering.multiple_window.py— GUI with multiple ImGui windows.
Dependencies
imguiglfwimgui_bundle
License
MIT License. Free to use and modify.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ara_imgui-2.0.0.tar.gz.
File metadata
- Download URL: ara_imgui-2.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73013af6c1d856eaf7749edfee73f20b7a28e3bcc98c005b9654715e6b2aca3b
|
|
| MD5 |
ce592efeb4a579e5a6d8c65efa475d1c
|
|
| BLAKE2b-256 |
0cb09370c0213cc8046f9b7beeede9a7c59341ab78a63999d94bbc2eb1f9962f
|
File details
Details for the file ara_imgui-2.0.0-py3-none-any.whl.
File metadata
- Download URL: ara_imgui-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecda37e6eca2fe7dd617c6cc29084c40e32692dae27b24b8b0819822e7c92cf0
|
|
| MD5 |
370f814b4787649af3a980de3a1707fd
|
|
| BLAKE2b-256 |
d4ab1621a51ecbbcc91663ff976780bd3b910fa5e4d60d23852d1d12392e671b
|