Skip to content

definitelyuncertain/imtui_py

Repository files navigation

Highly WIP Python bindings for ImTui based on deargui.

It is highly recommended to build and run in a Virtual or Conda Environment.

Build and Run

Don't forget to initialize submodules!

git submodule update --init --recursive

Install build requirements:

pip install -r requirements.txt

Wheel Build

BUILD_DIR=/path/to/build/dir bash build_wheel.sh

Default build path if BUILD_DIR is not set is build/.

The wheel will be present in the build path. It can be installed with e.g.

pip install build/imtui_py-0.0.1-py3-none-any.whl

Run with

python test_imtui.py

If all has gone well, you should see a window with an exit button.

Manual Build (Not recommended)

cmake -B build
cmake --build build -- -j <#threads_you_want>

Run

PYTHONPATH=build/:$PYTHONPATH python test_imtui.py

Credits

  • ImTui : TUI backend for Dear ImGui.
  • deargui : Pybind11 bindings Dear for ImGui.
  • Dear ImGui : Immediate mode GUI library.

About

Python bindings for ImTui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages