I use wxFormBuilder and export the GUI using XRC (instead of Python). I know it's not exactly 'dynamic', but it's pretty close.
First I build my whole GUI project with all the widgets in wxFormBuilder, and export the project as XRC (xml representation of the GUI widgets and hierarchy).
Then My wxAPP (Pyhton or C++) loads the XRC and builds every widget contained contained within my project. This is done by a simple call to 'xrc.XmlResource('mygui.xrc')'
This makes it super easy to maintain and test my GUI changes, without having to sift through a bunch of 'AddSizer...' GUI specific code. Building a GUI in code and maintaining it adds quite a cost and becomes quite tedious quickly.
wxFormBuilder does tend to crash once in a while, but otherwise allows for a fairly smooth GUI building experience, while decoupling your App code from your GUI 'scaffolding' concerns.
First I build my whole GUI project with all the widgets in wxFormBuilder, and export the project as XRC (xml representation of the GUI widgets and hierarchy).
Then My wxAPP (Pyhton or C++) loads the XRC and builds every widget contained contained within my project. This is done by a simple call to 'xrc.XmlResource('mygui.xrc')'
This makes it super easy to maintain and test my GUI changes, without having to sift through a bunch of 'AddSizer...' GUI specific code. Building a GUI in code and maintaining it adds quite a cost and becomes quite tedious quickly.
wxFormBuilder does tend to crash once in a while, but otherwise allows for a fairly smooth GUI building experience, while decoupling your App code from your GUI 'scaffolding' concerns.