parameters: (self, event)
docstring: Handles the ``wx.EVT_PAINT`` event for :class:`AuiCenterDockingGuide`.
  
          :param `event`: a :class:`PaintEvent` to be processed.
docstring_summary: Handles the ``wx.EVT_PAINT`` event for :class:`AuiCenterDockingGuide`.
docstring_tokens: Handles the wx . EVT_PAINT event for : class : AuiCenterDockingGuide .
function: def OnPaint(self, event):
          """
          Handles the ``wx.EVT_PAINT`` event for :class:`AuiCenterDockingGuide`.
  
          :param `event`: a :class:`PaintEvent` to be processed.
          """
  
          dc = wx.AutoBufferedPaintDC(self)
  
          if self._useAero:
              dc.SetBrush(wx.TRANSPARENT_BRUSH)
              dc.SetPen(wx.TRANSPARENT_PEN)
          else:
              dc.SetBrush(wx.Brush(colourTargetBackground))
              dc.SetPen(wx.Pen(colourTargetBorder))
  
          rect = self.GetClientRect()
          dc.DrawRectangle(rect.x, rect.y, rect.width, rect.height)
  
          if self._useAero:
              dc.DrawBitmap(self._aeroBmp, 0, 0, True)
              if not self._valid:
                  diff = (self._useAero == 2 and [1] or [0])[0]
                  bmpX, bmpY = self._deniedBitmap.GetWidth(), self._deniedBitmap.GetHeight()
                  xPos, yPos = (rect.x + (rect.width)/2 - bmpX/2), (rect.y + (rect.height)/2 - bmpY/2)
                  dc.DrawBitmap(self._deniedBitmap, xPos+1, yPos+diff, True)
  
              return
  
          dc.SetPen(wx.Pen(colourTargetBorder, 2))
          for pts in self._triangles:
              dc.DrawLinePoint(pts[0], pts[1])
function_tokens: def OnPaint ( self , event ) : dc = wx . AutoBufferedPaintDC ( self ) if self . _useAero : dc . SetBrush ( wx . TRANSPARENT_BRUSH ) dc . SetPen ( wx . TRANSPARENT_PEN ) else : dc . SetBrush ( wx . Brush ( colourTargetBackground ) ) dc . SetPen ( wx . Pen ( colourTargetBorder ) ) rect = self . GetClientRect ( ) dc . DrawRectangle ( rect . x , rect . y , rect . width , rect . height ) if self . _useAero : dc . DrawBitmap ( self . _aeroBmp , 0 , 0 , True ) if not self . _valid : diff = ( self . _useAero == 2 and [ 1 ] or [ 0 ] ) [ 0 ] bmpX , bmpY = self . _deniedBitmap . GetWidth ( ) , self . _deniedBitmap . GetHeight ( ) xPos , yPos = ( rect . x + ( rect . width ) / 2 - bmpX / 2 ) , ( rect . y + ( rect . height ) / 2 - bmpY / 2 ) dc . DrawBitmap ( self . _deniedBitmap , xPos + 1 , yPos + diff , True ) return dc . SetPen ( wx . Pen ( colourTargetBorder , 2 ) ) for pts in self . _triangles : dc . DrawLinePoint ( pts [ 0 ] , pts [ 1 ] )