Dear PyGui is a simple, fast, and powerful Python GUI toolkit that provides a wrapper for the Dear ImGui library. It allows for the rapid creation of highly interactive graphical user interfaces with Python, often used for tools, dashboards, and visualizations. The current version is 2.3, and it maintains an active release cadence with significant updates, including major version bumps for internal dependency upgrades and API changes.
pip install dearpyguiVerified import paths — ran on the pinned version, not inferred.
This quickstart creates a simple DearPyGui application with a window containing text and a button. It demonstrates the basic lifecycle: context creation, viewport setup, running the main loop, and context destruction.
Review the official DearPyGui v2.0.0 changelog and updated documentation. Most style parameters are now handled via `dpg.bind_item_theme()` or through global theme settings rather than direct function arguments.
Avoid accessing or modifying DearPyGui items from multiple threads simultaneously. Perform all GUI-related operations exclusively on the main thread, or implement custom synchronization mechanisms for any cross-thread communication.
Be aware of this blocking behavior. If responsiveness during resize is critical, consider alternative ways to manage your main loop or structure your application to account for these pauses. For most simple applications, `start_dearpygui()` handles this implicitly.
Ensure you are consistently importing with `import dearpygui.dearpygui as dpg` and referring to functions with `dpg.function_name()`.
Either ensure each item has a unique tag (recommended), or check if an item with the desired tag already exists using `dpg.does_item_exist('tag')` before adding it. If you wish to dynamically update an item, use `dpg.set_item_config('tag', **kwargs)` instead of re-adding it.Add `dpg.create_context()` at the very beginning of your DearPyGui application logic, before any other `dpg` calls.
No dependency data recorded yet.