SetBackGroundColour not inherited by children?

I am experimenting with the above but don't have much success.

see attached

how come the wx.Panel doesn't inherit the colour set on the dialog?

My original problem was with sized_controls.SizedPanel and I wondered after some googling if the problem came from it not using "self.InheritAttributes()" but then I did the attached sample and I see that a standard wx.Panel doesn't inherit either.

Any hints on why the inheriting does not work would be very appreciated.

Werner

bgcolortest.py (807 Bytes)

I'm not sure. Please create a trac ticket about it. It can probably have the Component set to "wxMSW".

···

On 9/16/11 5:57 AM, werner wrote:

I am experimenting with the above but don't have much success.

see attached

how come the wx.Panel doesn't inherit the colour set on the dialog?

My original problem was with sized_controls.SizedPanel and I wondered
after some googling if the problem came from it not using
"self.InheritAttributes()" but then I did the attached sample and I see
that a standard wx.Panel doesn't inherit either.

Any hints on why the inheriting does not work would be very appreciated.

--
Robin Dunn
Software Craftsman

Done - Ticket #13487

Werner

···

On 09/17/2011 08:47 PM, Robin Dunn wrote:

On 9/16/11 5:57 AM, werner wrote:

I am experimenting with the above but don't have much success.

see attached

how come the wx.Panel doesn't inherit the colour set on the dialog?

My original problem was with sized_controls.SizedPanel and I wondered
after some googling if the problem came from it not using
"self.InheritAttributes()" but then I did the attached sample and I see
that a standard wx.Panel doesn't inherit either.

Any hints on why the inheriting does not work would be very appreciated.

I'm not sure. Please create a trac ticket about it. It can probably have the Component set to "wxMSW".