Inheritance diagram for wx.Panel:
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 wx.Window; 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.
Tip
if not all characters are being intercepted by your OnKeyDown or OnChar handler, it may be because you are using the wx.TAB_TRAVERSAL style, which grabs some keypresses for use by child controls.
See also
wx.HtmlListBox, wx.NotebookPage, wx.PreviewCanvas, wx.PreviewControlBar, wx.PyPanel, wx.PyPreviewControlBar, wx.PyScrolledWindow, wx.ScrolledWindow, wx.SimpleHtmlListBox, wx.VListBox, wx.VScrolledWindow
By default, a panel has the same colouring as a dialog.
Constructor.
Parameters:
Returns:
Overrides wx.Window.SetFocus.
This method uses the mix-in class wx.ControlContainer which manages the focus and TAB logic for controls which usually have child controls. In practice, if you call this method and the control has at least one child window, the focus will be given to the child window.
See also