views:

80

answers:

0

Hello,

I draw a tranlucent rectangle on my panel but on the places that have static text's the rectangle is not filled.

I've drawn rectangles inside each static text but when I do that, the correspondent text doesn't happear.

How can I draw a translucent rectangle inside the statix text without making the text disappear?

The code is like this:

dc = wx.PaintDC(self)
gc = wx.GraphicsContext.Create(dc)
gc.SetBrush(wx.Brush(wx.Colour(255,  255,  0, 22))) # Translucid Yellow
gc.DrawRectangle(0, 0, self.GetClientSizeTuple()[0], self.GetClientSizeTuple()[1])

My static text is allready tranparent but still doesn't happear the translucent rectangle on it! How can I fix this?

Thanks in advance