wxpython container help please

Hi There

I bought the xwpython in action book and I have been try to teach myself through online tutorials but I am still very new to wxpython and I am confused about something that is likely rather simple.

Basically I want to make an application that will have a few different windows, one where users can controller instruments, one where they can view a live plot and one where they can process the data.

I had planned to have the usual menubar and status bar but I thought I would use the toolbar icons to link to these different windows. When an icon is clicked on I thought I would create a new window and then when another icon is clicked the window would be destroyed and the next would show.

So, to get to the point(thanks for your patience) I was wondering about two things, one what is the best widget to create these new windows that will reside below the toolbar? There seems to be a number of containers, i.e wx.sashedwindow etc, that can do this. I however do not know what is the standard way to do this. The second is, is it sensible to use toolbar icons to link to these other views? should the toolbar really only be used for functions?

Sorry for the long email and the dumb questions. Once someone points this fool in the right direction I will be able to help myself a lot better.

-Pat

So, to get to the point(thanks for your patience) I was wondering about
two things, one what is the best widget to create these new windows that
will reside below the toolbar? There seems to be a number of containers,

i.e wx.sashedwindow etc, that can do this. I however do not know what is
the standard way to do this. The second is, is it sensible to use
toolbar icons to link to these other views? should the toolbar really

only be used for functions?

Sorry for the long email and the dumb questions. Once someone points
this fool in the right direction I will be able to help myself a lot better.

Why not just use a notebook?

Having toolbar items that destroy a visible sibling-window and then
create a new one… that sounds rather like you’re trying to roll your
own notebook :slight_smile:

The wxNotebook class is simple and basically its whole point is to
manage different views like that. I especially like wx.aui.Notebook for
pretty though. Its got about the same API. Check out the demo, there’s
various “Book Controls”, all of which offer different styles to
accomplish what it sounds like you’re doing.

-Pat

–S

···

On 6/30/07, Patrick optomatic@rogers.com wrote: