parameters: (colour, backColour=None)
return_statement: return bmp
docstring: Draws the wxMAC tab close button using :class:`GraphicsContext`.
  
      :param Colour `colour`: the colour to use to draw the circle;
      :param Colour `backColour`: the optional background colour for the circle.
docstring_summary: Draws the wxMAC tab close button using :class:`GraphicsContext`.
docstring_tokens: Draws the wxMAC tab close button using : class : GraphicsContext .
function: def DrawMACCloseButton(colour, backColour=None):
      """
      Draws the wxMAC tab close button using :class:`GraphicsContext`.
  
      :param Colour `colour`: the colour to use to draw the circle;
      :param Colour `backColour`: the optional background colour for the circle.
      """
  
      bmp = wx.EmptyBitmapRGBA(16, 16)
      dc = wx.MemoryDC()
      dc.SelectObject(bmp)
  
      gc = wx.GraphicsContext.Create(dc)    
      gc.SetBrush(wx.Brush(colour))
      path = gc.CreatePath()
      path.AddCircle(6.5, 7, 6.5)
      path.CloseSubpath()
      gc.FillPath(path)
      
      path = gc.CreatePath()
      if backColour is not None:
          pen = wx.Pen(backColour, 2)
      else:
          pen = wx.Pen("white", 2)
          
      pen.SetCap(wx.CAP_BUTT)
      pen.SetJoin(wx.JOIN_BEVEL)
      gc.SetPen(pen)
      path.MoveToPoint(3.5, 4)
      path.AddLineToPoint(9.5, 10)
      path.MoveToPoint(3.5, 10)
      path.AddLineToPoint(9.5, 4)
      path.CloseSubpath()
      gc.DrawPath(path)
  
      dc.SelectObject(wx.NullBitmap)
      return bmp
function_tokens: def DrawMACCloseButton ( colour , backColour = None ) : bmp = wx . EmptyBitmapRGBA ( 16 , 16 ) dc = wx . MemoryDC ( ) dc . SelectObject ( bmp ) gc = wx . GraphicsContext . Create ( dc ) gc . SetBrush ( wx . Brush ( colour ) ) path = gc . CreatePath ( ) path . AddCircle ( 6.5 , 7 , 6.5 ) path . CloseSubpath ( ) gc . FillPath ( path ) path = gc . CreatePath ( ) if backColour is not None : pen = wx . Pen ( backColour , 2 ) else : pen = wx . Pen ( "white" , 2 ) pen . SetCap ( wx . CAP_BUTT ) pen . SetJoin ( wx . JOIN_BEVEL ) gc . SetPen ( pen ) path . MoveToPoint ( 3.5 , 4 ) path . AddLineToPoint ( 9.5 , 10 ) path . MoveToPoint ( 3.5 , 10 ) path . AddLineToPoint ( 9.5 , 4 ) path . CloseSubpath ( ) gc . DrawPath ( path ) dc . SelectObject ( wx . NullBitmap ) return bmp