wxFrame has a feature wherein if there is only one child of the frame then it assumes that you want it to be positioned and sized such that it fills the client area of the frame. If you don't want it to do this then you can either handle the EVT_SIZE event yourself so the default one does not run, or you can give the frame a sizer that will size and layout the panel in some other way.
···
On 7/16/10 9:02 AM, Alfonso G�mez Garc�a-Tora�o wrote:
Hello,
I guess this is quite an easy task for the experienced users of
wxPython, but it is driving me crazy:I have my global wx.Frame, where my GUI is running. Now, what I need to
do is place, in some particular point of that frame, a wx.Panel.
Everything goes fine UNTIL I place a button (could be anything) in my
new /wx.Panel/. Surprisingly, it expands and covers the whole frame, not
allowing me to see what was in the frane anymore. What is going on?
--
Robin Dunn
Software Craftsman