diff --git a/wxPython/wxPython/lib/stattext.py b/wxPython/wxPython/lib/stattext.py index 3a3d41f6c8..7b2467c891 100644 --- a/wxPython/wxPython/lib/stattext.py +++ b/wxPython/wxPython/lib/stattext.py @@ -100,10 +100,11 @@ class wxGenStaticText(wxPyControl): def OnPaint(self, event): + dc = wxBufferedPaintDC(self) + #dc = wxPaintDC(self) width, height = self.GetClientSize() if not width or not height: return - dc = wxBufferedPaintDC(self) dc.SetBackground(wxBrush(self.GetBackgroundColour(), wxSOLID)) dc.SetTextForeground(self.GetForegroundColour()) dc.Clear()