[wxPython] Dynamic creation of ctrls in the same panels

Hi All,

I wud like to create btn ctrls in a panels dynamically. The click event of
this btn should create few more bts at the same location or with
indentations.
When we click on these bts, may display the parent btn at the same panel
again.

It is kind of treectrl, with ctrls like btn,edit,combo, radio box as items.

How can I go about it to design this screens? Any idea?

TIA,
Maharajan

Use LayoutContraints, build a new object dynamically, reset the layout constraints to incorporate it and then call Layout() to organise everything.

Alternatively you could pre-layout the lot and then just show or hide controls with control.Show(true/false)

Crispin

ยทยทยท

On Fri, Jan 18, 2002 at 05:40:05AM -0800, Mariappan, MaharajanX wrote:

Hi All,

I wud like to create btn ctrls in a panels dynamically. The click event of
this btn should create few more bts at the same location or with
indentations.
When we click on these bts, may display the parent btn at the same panel
again.

It is kind of treectrl, with ctrls like btn,edit,combo, radio box as items.

How can I go about it to design this screens? Any idea?