Issue in wxStaticBox widget

Hi All,

Actually i am inheriting wx.StaticBox as given below.

class My_StaticBox(wx.StaticBox):

    def __init__(self, Parent = None, id =wx.ID_ANY, text ='' ):

        wx.StaticBox.__init__(self, parent = Parent, id=id )

        self.text = text

        self.SetFont(font1)

        self.SetOwnForegroundColour(wx.Colour( 255, 186, 23))

        self.SetLabel(self.text)

So this will set label/string properly with desire color.
But when you press any key( tab or down key) That time the text color
is changing to default

(some sort of blue in windows xp)text color, one strange thing is
that, This is happening first time key press only.Once you refresh
this it is working fine ie with desire color of text later on there
is no color change in text color.

Can you guess where i am doing wrong???

I am using wxpython 2.8.10 on windowxp with python 2.5.