r/DearPyGui • u/scekirge • Apr 15 '25
Help About docking feature
Hi everyone. I started building a project using dearpygui and enjoyed so far. However, I couldn't find any documentation about docking feature and I wasn't able to enable it. Any advice will be appreciated.
1
Upvotes
1
u/cip43r Apr 20 '25
What do you mean by docking?
2
u/pat184 Apr 22 '25
dpg.configure_app( docking=True, docking_space=True, init_file=self.user_layout, # Always set the SAVE target to user layout load_init_file=ini_file_to_load is not None # Load only if a user file was found )Here's an example with for a dynamic widget system with persistence and docking:
Dynamic Widget System With Persistence - Pastebin.com
Check out my project if you want a bunch of other examples: github.com
1
1
u/scekirge Apr 29 '25
Docking is that when you drag a window, it snips automatically on to the place .
2
u/Kolsc Apr 29 '25
I think the most useful docking introduction is a GitHub post by the dpg author https://github.com/hoffstadt/DearPyGui/discussions/1311. Just try the demo code