parameters: (self, dc, window, rect, pane)
docstring: Draws the pane border.
  
          :param `dc`: a :class:`DC` device context;
          :param `window`: an instance of :class:`Window`;
          :param Rect `rect`: the border rectangle;
          :param `pane`: the pane for which the border is drawn.
docstring_summary: Draws the pane border.
docstring_tokens: Draws the pane border .
function: def DrawBorder(self, dc, window, rect, pane):
          """
          Draws the pane border.
  
          :param `dc`: a :class:`DC` device context;
          :param `window`: an instance of :class:`Window`;
          :param Rect `rect`: the border rectangle;
          :param `pane`: the pane for which the border is drawn.
          """
  
          drect = wx.Rect(*rect)
  
          dc.SetPen(self._border_pen)
          dc.SetBrush(wx.TRANSPARENT_BRUSH)
  
          border_width = self.GetMetric(AUI_DOCKART_PANE_BORDER_SIZE)
  
          if pane.IsToolbar():
  
              for ii in xrange(0, border_width):
  
                  dc.SetPen(wx.WHITE_PEN)
                  dc.DrawLine(drect.x, drect.y, drect.x+drect.width, drect.y)
                  dc.DrawLine(drect.x, drect.y, drect.x, drect.y+drect.height)
                  dc.SetPen(self._border_pen)
                  dc.DrawLine(drect.x, drect.y+drect.height-1,
                              drect.x+drect.width, drect.y+drect.height-1)
                  dc.DrawLine(drect.x+drect.width-1, drect.y,
                              drect.x+drect.width-1, drect.y+drect.height)
                  drect.Deflate(1, 1)
  
          else:
  
              for ii in xrange(0, border_width):
  
                  dc.DrawRectangle(drect.x, drect.y, drect.width, drect.height)
                  drect.Deflate(1, 1)
function_tokens: def DrawBorder ( self , dc , window , rect , pane ) : drect = wx . Rect ( * rect ) dc . SetPen ( self . _border_pen ) dc . SetBrush ( wx . TRANSPARENT_BRUSH ) border_width = self . GetMetric ( AUI_DOCKART_PANE_BORDER_SIZE ) if pane . IsToolbar ( ) : for ii in xrange ( 0 , border_width ) : dc . SetPen ( wx . WHITE_PEN ) dc . DrawLine ( drect . x , drect . y , drect . x + drect . width , drect . y ) dc . DrawLine ( drect . x , drect . y , drect . x , drect . y + drect . height ) dc . SetPen ( self . _border_pen ) dc . DrawLine ( drect . x , drect . y + drect . height - 1 , drect . x + drect . width , drect . y + drect . height - 1 ) dc . DrawLine ( drect . x + drect . width - 1 , drect . y , drect . x + drect . width - 1 , drect . y + drect . height ) drect . Deflate ( 1 , 1 ) else : for ii in xrange ( 0 , border_width ) : dc . DrawRectangle ( drect . x , drect . y , drect . width , drect . height ) drect . Deflate ( 1 , 1 )