anatomy of a wx.app

Hi,

the examples/demos don't really clarify this for me,
as they only provide a function that returns a window
and i don't really understand what is placed in what.

I understand that a wx.app opens a frame and this
frame can be set to be a top window.

But how can i place e.g. a ListCtrl into it?

How would i place a simple button into it?

Can i place the button directly into the drame?

Or do i need another container for the button to
hold it?

Where can i read about these basic things?

Thanks for any hints,
Torsten.

Hi All
I am very frustrated with a grid.
I update cell 2 in a row of 7 in the underlying table and cells 5 & 7
immediately take the same value. I use mygrid._table.SetValue(r,c,val).
There does not seem to be a logic error in my code so I wonder what I am
missing.
Thank in advance.
Greg

Torsten Mohr wrote:

the examples/demos don't really clarify this for me,
as they only provide a function that returns a window
and i don't really understand what is placed in what.

You could also try wxGlade (http://wxglade.sourceforge.net), which has a small intro to laying out widgets, and when you get familiar with sizers, its quite excellent for putting a gui together.

You have to add your own event handler code to the Python generated by wxGlade, but at least it can get you a complete gui layout and kicks you up the learning curve a little.

ยทยทยท

--
Les Ferguson
Software developer
Waitakere, NZ