-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to dynamically add dockable windows. #106
Comments
Hi, This subject was discussed previously inside HelloImGui's repository. However, you are right a demo would help: I added a demo for this in this commit
By the way, I just opened a gallery in the discussions section of this repository. I you are inclined to post examples from your use of the library, I would be happy to see them! |
Yes, very possible. Not by mutating the current list of windows but by replacing it. so window_list = hello_imgui.get_runner_params().docking_params.dockable_windows
window_list.append(my_dockable_window)
hello_imgui.get_runner_params().docking_params.dockable_windows = window_list |
@eniac11 , @dcnieho : I recently added an interesting feature: the possibility to define several layouts and switch between them. Each layout is stored in a
See this video demo and explanation Also, see the corresponding code: |
@pthom! This looks like a really useful feature! Especially since it can track how users change the layout. I have an app that is used by multiple users, and using this i think I can use this feature to reinstate the layout from their last session after they log in. That's really nice! some questions and things i wonder about before trying this out:
|
Note. thats me thinking before i have tried the feature. If it doesn't make sense, let me know. |
Hi Dee,
Please read the example demo_docking.py # Set the default layout (this contains the default DockingSplits and DockableWindows)
runner_params.docking_params = create_default_layout(app_state)
# Add alternative layouts
runner_params.alternative_docking_layouts = create_alternative_layouts(app_state) What you want is to let runner_params.alternative_docking_layouts be empty. This way, no layout menu will be shown.
May be you could call hello_imgui.run() once for the login screen, and then run it once for the rest of the app?
I guess this is what it contained in runnerParams.docking_params.dockable_windows (and then ask for their name)
This would be the easier possibility
What do you mean by profile activation? |
I want to dynamically add imgui windows in python. I would expect something like.
Would create a window and show it docked in Maindockspace.
Is this possible. If it is how would I do this and should there be an demo.
PS. First ever github issue or issue in fact.
The text was updated successfully, but these errors were encountered: