How do I make any wxPython widget (like wx.Panel or wx.Button) automatically expand to fill its parent window?
In the case of a Button, to make a button fill its parent window when the parent window (a frame in my case) changes size, put button.SetSize(parent_window.GetSize()) in the parent window's OnSize event handling routine.
wxPython: Making something expand