Method summary
- __init__(self, parent, *args, **kw)
- OnChildFocus(self, event)
- OnEraseBackground(self, event)
- OnPaint(self, event)
Methods
- __init__(self, parent, *args, **kw)
Creates a wx.Panel that correctly sets its background color to be the same as its parents.
- OnChildFocus(self, event)
If the ChildFocusEvent contains one of the Panel's direct children, then we will Skip it to let it pass up the widget hierarchy.
Otherwise, we consume the event to make sure it doesn't go any farther. This works around a problem in wx 2.8.8.1 where each Panel in a nested hierarchy generates many events that might consume too many resources. We do, however, let one event bubble up to the top so that it may inform a top-level ScrolledPanel that a descendant has acquired focus.
- OnEraseBackground(self, event)
Do not erase the background here (do it in the 'on_paint' handler).
- OnPaint(self, event)
Paint the background using the associated ImageSlice object.