Structuring my application: multiple pages/screens?

Hi all,

I'm new to Python and wxpython, but from speaking to various people it sounds like the right tool for the job, and I'm sure I can pick it up quickly enough, coming from a Ruby background.

I've got my head around lots of aspects of it: sizers, etc, but I'm trying to work out how to structure the application I want to write.

Basically, it's a fullscreen touchscreen application with multiple pages or screens. There would be a set of buttons/widgets on one page, which allows you to move onto the next page, or back to the previous page.

So I imagine that after building the main Frame, I need to put a Panel inside it and change those Panels around depending on what page I want displayed at a time?

Does this sound sensible? Or are Panels the wrong tool for the job? Should I be replacing the entire Frame?

I hope this make sense!

Thanks a lot,

Tom

This is ok, and it is a proven approach adopted by a lot of us.
Just place the panels in a BoxSizer and control their visibility through sizer’s Show/Hide methods.

Good luck!

Peter

···

On 10/29/06, Tom Taylor tom@tomtaylor.co.uk wrote:

Hi all,
So I imagine that after building the main Frame, I need to put a Panel
inside it and change those Panels around depending on what page I want
displayed at a time?

Does this sound sensible? Or are Panels the wrong tool for the job?

Should I be replacing the entire Frame?


There is NO FATE, we are the creators.

Peter Damoc wrote:

This is ok, and it is a proven approach adopted by a lot of us.
Just place the panels in a BoxSizer and control their visibility through sizer's Show/Hide methods.

Thanks Peter. Do you mean put each panel inside it's own BoxSizer and show/hide the entire BoxSizer? Or do you mean put them inside one BoxSizer and show/hide the invidual panels?

Cheers!

Tom

Put all panels in one BoxSizer one after the other and use that boxsizer’s Show and Hide method to control their visibility.

···

On 10/29/06, Tom Taylor tom@tomtaylor.co.uk wrote:

Peter Damoc wrote:

This is ok, and it is a proven approach adopted by a lot of us.
Just place the panels in a BoxSizer and control their visibility through
sizer’s Show/Hide methods.

Thanks Peter. Do you mean put each panel inside it’s own BoxSizer and

show/hide the entire BoxSizer? Or do you mean put them inside one
BoxSizer and show/hide the invidual panels?


There is NO FATE, we are the creators.

Peter Damoc wrote:

Put all panels in one BoxSizer one after the other and use that boxsizer's Show and Hide method to control their visibility.

Thanks Peter, it works a treat.