AUI Manager question - How to add a pane dynamically

When creating the panes inside the main frame everything is working as expected but when
AddPane is called from within an external source it doesn’t work as expected. What am I doing wrong?

Situation, demo app creates a center pane and on the left side a treeview, so far so good.

In addition it loads a plugin and adds it to the menu. When clicking on the menu the

aui manager creates an window on the right side as expected BUT the treeview is outside of it.

When double clicking onto the right pane it snaps to the treeview and I can dock it where I want.

Attached a sample which maybe explains my problem a little better.

To make this demo work you need to have the following in a directory

file: DEMO_AUI.py

dir: plugins

within plugins directory file: init.py

Thank you

Hubert

DEMO_AUI.py (5.53 KB)

init.py|attachment (2.22 KB)

Ok, problem is related to frame instance within plugin.

I guess this makes sense as it is a different frame then registered,

When using treectrl it works as expected.

Hubert