How do I save a window docking layout? #1311
Locked
hoffstadt
announced in
Frequently Asked Questions (FAQ)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Answer
Saving a window docking layout is a 4 step process:
save_init_file(...)
load_init_file
orinit_file
:a.
load_init_file
if you don't want the layout to be overwritten by the user.b.
init_file
if you want the user's run time changes to be saved.Example
For the first run, we use the following:
We lay the windows out like so before saving:
![image](https://user-images.githubusercontent.com/39973752/126207707-6fee5753-dfa6-4a1d-9d9b-5671454327be.png)
Next, we modify the script like so:
With the above script, the app will always open with the saved layout. If you would like the user's changes to be saved between sessions, replace
load_init_file
withinit_file
. If you would like this same functionality without the user overwriting the default layout:Resources
Notes
Beta Was this translation helpful? Give feedback.
All reactions