Can I collapse a Panel in wxPython?

N

nuffnough

Hi.

I have a gui with one frame and 5 panels. The second panel will only
be required in some cases, so I am wondering if there is some way I
can only create this panel in the circumstances where it is required,
confirmed by a simple len(list) > 1

If it is possible, I am wondering how I might go about it.... I am not
sure where to put an if statement as there are many different referrals
to panel_2

Letting me know or just pointing me to an example of such a thing would
be fabulous.

TIA
 
R

rbann11

Hi.

I have a gui with one frame and 5 panels. The second panel will only
be required in some cases, so I am wondering if there is some way I
can only create this panel in the circumstances where it is required,
confirmed by a simple len(list) > 1

If it is possible, I am wondering how I might go about it.... I am not
sure where to put an if statement as there are many different referrals
to panel_2

Letting me know or just pointing me to an example of such a thing would
be fabulous.

TIA

Check out http://wiki.wxpython.org/index.cgi/FoldPanelBar

Roger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top