I concurr. The wx.CallAfter works for me in setting notebook panel colors.
Thanks,
ron
···
-----Original Message-----
From: Vladimir Ignatov [mailto:vignatov@colorpilot.com]
Sent: Friday, April 08, 2005 11:36 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] wx.Panel.SetBackgroundColourHi!
> Here's an example using wx.Notebook. The first panel does
not have the
> specified (reddish) colour, the second does. The second
panel has its
> BackgroundColour set in a EVT_SIZE event handler.
>
> Is this a bug?Kind of "feature". wx.Notebook love to setup pages colour
according to the
current windows "theme". If you definetily need to change
page color, you
should do it _after_ page is added to notebook. Your approach (using
EVT_SIZE) is IMHO a bit exotic. You can use wx.CallAfer for the same
purpose.Vladimir Ignatov
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org