Robin Dunn wrote:
If you want the editor to appear within the notebook then you need to
make it a child of the notebook (if it will be a notebook page itself)
or a child of a notebook page window.
I don't remember if I tried that but it can be the right solution.
Otherwise if you want it to be outside the notebook then you'll need to
do something to manage it's size and position. When you make the frame
have a 2nd child then the built-in functionality for resizing an only
child to fill the client area is turned off. So create a new sizer that
has both the panel and the editor in it and assign that sizer to the frame.
I solved by creating my editor outside __init__.
I create it when the toggle button is pushed.
Thank you
maxx