Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

How Does It Compare?

Not sure if Dear ImGui Bundle is right for you? Compare the code styles with other popular GUI libraries, when creating the app below:

Fruit picker app
ImGui Bundle
Qt
DearPyGui
NiceGUI
Gradio

12 lines – True immediate mode: UI declaration is the event handler

from imgui_bundle import imgui, hello_imgui

selected_idx = 0
items = ["Apple", "Banana", "Cherry"]

def gui():
    global selected_idx
    imgui.text("Choose a fruit:")
    _changed, selected_idx = imgui.list_box("##fruits", selected_idx, items)
    imgui.text(f"You selected: {items[selected_idx]}")

hello_imgui.run(gui, window_title="Fruit Picker", window_size_auto=True)

Strengths: Simplest code, real-time capable, runs on desktop + web (Pyodide), 20+ integrated libraries, full C++ support

Best for: Tools, visualization, games, scientific apps