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()