METADATA 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Metadata-Version: 2.4
  2. Name: Ara_imgui
  3. Version: 2.0.0
  4. Summary: A simplified wrapper for Dear ImGui and GLFW
  5. Author-email: HanamileH <hanamileh@gmail.com>
  6. License-Expression: MIT
  7. Project-URL: Homepage, https://github.com/hanamileh/Ara_imgui
  8. Requires-Python: >=3.7
  9. Description-Content-Type: text/markdown
  10. Requires-Dist: imgui_bundle>=1.92.0
  11. # Ara_imgui
  12. **Ara_imgui** is a lightweight and easy-to-use wrapper around [Dear ImGui](https://github.com/ocornut/imgui) using Python and GLFW. It simplifies GUI application development with ImGui by providing a convenient interface for managing windows, fonts, and application lifecycle.
  13. ## Features
  14. - Simple ImGui app launch with a single `run` function
  15. - Support various themes
  16. - System or custom font loading, including Cyrillic support
  17. - Ready-to-run examples included in the `examples` folder
  18. ## Installation
  19. ```bash
  20. pip install ara_imgui
  21. ```
  22. > ⚠️ Make sure you have Python 3.7+ and OpenGL support (e.g., via GPU drivers on Windows).
  23. ## Usage
  24. ### Basic example
  25. ```python
  26. from ara_imgui import App, imgui
  27. app = App("Hello world example")
  28. def gui():
  29. imgui.text("Hello, world!")
  30. if imgui.button("Click me"):
  31. print("Clicked!")
  32. app.run(gui)
  33. ```
  34. ### Custom fonts and themes
  35. ```python
  36. from ara_imgui import App, imgui
  37. font_path = R"C:\Windows\Fonts\Arial.ttf"
  38. app = App("Font Example")
  39. app.apply_theme("cherry")
  40. app.load_font(font_path, font_size=20)
  41. def gui():
  42. imgui.text("Sample text with custom font")
  43. app.run(gui)
  44. ```
  45. ## Examples
  46. See the [`examples/`](./examples) folder:
  47. * `hello_world.py` — Basic "Hello, world!" with a button.
  48. * `basic_window.py` — Simple window with input field.
  49. * `custom_font.py` — Font and multilingual text rendering.
  50. * `multiple_window.py` — GUI with multiple ImGui windows.
  51. ## Dependencies
  52. * `imgui`
  53. * `glfw`
  54. * `imgui_bundle`
  55. ## License
  56. MIT License. Free to use and modify.