ViewportΒΆ
The viewport is what you traditionally call a window in other GUI libraries.
In the case of DPG we call the operating system window the viewport and the DPG windows as windows.
- Before calling
start_dearpygui
, you must do the following: Create a viewport, using
create_viewport
.Assign the viewport, using
setup_dearpygui
.Show the viewport, using
show_viewport
.
Once the viewport has been created, you can begin
configuring the viewport using configure_viewport
or the helper commands set_viewport_***.
Note
Large/small icon must be set before showing the viewport (i.e. you will need to setup the viewport manually).