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.
Metadata
Release files for Ara-imgui 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ara_imgui-2.0.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ara_imgui-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / ara_imgui-2.0.0.tar.gz
| Download URL | ara_imgui-2.0.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73013af6c1d856eaf7749edfee73f20b7a28e3bcc98c005b9654715e6b2aca3b
|
|
BLAKE2b-256 checksum How to use checksums |
0cb09370c0213cc8046f9b7beeede9a7c59341ab78a63999d94bbc2eb1f9962f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / ara_imgui-2.0.0-py3-none-any.whl
| Download URL | ara_imgui-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecda37e6eca2fe7dd617c6cc29084c40e32692dae27b24b8b0819822e7c92cf0
|
|
BLAKE2b-256 checksum How to use checksums |
d4ab1621a51ecbbcc91663ff976780bd3b910fa5e4d60d23852d1d12392e671b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|