Shapes became black

Hi! Im using the wxDrawShape and I use a rounded rectangle shape like this:

class rounded(wxDrawnShape):
    def __init__(self):
        wxDrawnShape.__init__(self)

        a=wxRect(-25,-25,50,50)
        self.DrawRoundedRectangle(a, 20)
        self.CalculateSize()

the problem is that when I move the object the interior became black. I want to write somethings inside the rectangle and I cant. Someone know what can I do to fix this?

Diego

the problem is that when I move the object the interior became black. I
want to write somethings inside the rectangle and I cant. Someone know
what can I do to fix this?

Strange that is changes when you move it, but this will fix it:
self.SetDrawnBrush(wxWHITE_BRUSH)

Thomas