Skip to main content

panda3d-imgui

A Dear ImGui backend for Python-based Panda3D projects with built-in utilities (based on DIRECT Tools).

Screenshot 2025-11-05 at 10 58 18 PM

This module will allow you to use and create Dear ImGui user interfaces within a Panda3D window, preferbly used to create content creation/debugging tools. (It uses Dear ImGui Bundle which contains not only the Python bindings for Dear ImGui, but with other goodies as well.

It is based on the C++ based project with the similar name. The difference that it is ported to Python for such users to use on their projects.

How to use

You can install the module through pip:

pip install panda3d-imgui

And you can import this module as p3dimgui

import p3dimgui

It has a helper method called init which you can easlily add in your ShowBase class. This will create a ImGuiBackend object into base.imgui and initialize it, along side the built-in ultilities.

from direct.showbase.ShowBase import ShowBase

from imgui_bundle import imgui

import p3dimgui

class MyApp(ShowBase):
    def  __init__(self):
        ShowBase.__init__(self)

        # Install Dear ImGui
        p3dimgui.init()

Once initalized, it will send an event called imgui-new-frame every frame. You can accept this event whenever you want to draw with ImGui:

def draw(self):
   # Show the demo window.
   imgui.show_demo_window()

self.accept('imgui-new-frame', self.draw)

Combine all this and you would have something like this, which will start up a new Panda3D window and shows the Dear ImGui demo window.

from direct.showbase.ShowBase import ShowBase

from imgui_bundle import imgui

import p3dimgui

class MyApp(ShowBase):
    def  __init__(self):
        ShowBase.__init__(self)

        # Install Dear ImGui
        p3dimgui.init()

        self.accept('imgui-new-frame', self.draw)

    def draw(self):
        # Show the demo window.
        imgui.show_demo_window()

app = MyApp()
app.run()
image

For a more better demo which showcases all the built-in utilities aviliable (like the screenshot at the top), see the demo.py file.

Metadata

Release files for panda3d-imgui 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for panda3d-imgui 1.2.0
File Size Uploaded Provenance Actions
panda3d_imgui-1.2.0.tar.gz 38.6 kB Without provenance Details for panda3d_imgui-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for panda3d-imgui 1.2.0
File Interpreter ABI Platform Actions
panda3d_imgui-1.2.0-py3-none-any.whl Python 3 none any Details for panda3d_imgui-1.2.0-py3-none-any.whl

Total release size: 54.9 kB

Release files / panda3d_imgui-1.2.0.tar.gz

Download URL panda3d_imgui-1.2.0.tar.gz
Size 38.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c91866e3689bb665cf5877769f6c3e4ba49c345afffa285cc53ee70bcedb07e3
BLAKE2b-256 checksum
How to use checksums
50e3641523fd1c0f8ce1490d6468e66a0f9c46bee9429950f415fa302dfc03fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / panda3d_imgui-1.2.0-py3-none-any.whl

Download URL panda3d_imgui-1.2.0-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18241fc77f82968af53cbe63434d5a3076470c8ec4025a874784346fa2e3bb24
BLAKE2b-256 checksum
How to use checksums
9eabf6a5dbafd88dd9bb51a131f6fd7387887b63610649d43588a3bb77be9d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for panda3d-imgui 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page