wxBoxSizers in window and two embedded panels.

Donnal Walter donnal at donnal.net
Mon Apr 21 20:40:47 CEST 2003

Igor Prischepoff wrote:
> Very strange. Panel is like window, so what the difference ?
> It's still a mistery for me.
> Any way - workaround solution is still the solution.

 From the docs:

"""A panel is a window on which controls are placed. It is usually 
placed within a frame. It contains minimal extra functionality over and 
above its parent class wxWindow; its main purpose is to be similar in 
appearance and functionality to a dialog, but with the flexibility of 
having any window as a parent."""

You can add wxControls to either a wxWindow or a wxPanel, but you can't 
(or at least you shouldn't) add a wxPanel to a wxWindow. Plus, when you 
add wxControls to a wxPanel, you get a tab order, but if you add them to 
a wxWindow there is no tab order.

> Thank for your help!

You are welcome.

Donnal Walter
Arkansas Children's Hospital

More information about the Python-list mailing list