[wxPython] Dynamic Constraints

Hi there. I want to set up an application for Windows which involves some
dynamic button-availability. Essentially, there is a client and an admin
framework within the application.

What I tried doing was creating it all, then when the request came to switch to
admin, changing the constraints and adding the buttons. I manually called the
Layout function, as well as trying resizing, and AutoLayout was already set to
true. However, nothing happened - the new controls just showed up in the upper
left.

Then I tried making the new buttons initially, and making them Show(false) and
then unhiding, and resetting the only constraints necessary, and reassigning
them. This also didn't work.

Essentially, whenever I try to modify the constraints, the layout falls apart.
It seems as though it even *turns off* the constraints, because afterward I
resize the window and everything stays the same as it was when the constraints
change.

Basically, I want to know the method of dynamically changing constraints, adding
controls, etc.

Thanks!

mjt

···

--
"Having said that, music is supposed to be
in the world for celebration, ritual, and
healing - that's the point for me."
    -- Trey Anastasio