parameters: (pen)
return_statement: return p
docstring: Convert a wx.Pen to a GraphicsPen
docstring_summary: Convert a wx.Pen to a GraphicsPen
docstring_tokens: Convert a wx . Pen to a GraphicsPen
function: def CreateFromPen(pen):
          """Convert a wx.Pen to a GraphicsPen"""
          assert isinstance(pen, wx.Pen)
          p = GraphicsPen(pen.Colour, pen.Width, pen.Style)
          p._cap = pen.Cap
          p._dashes = pen.Dashes
          p._join = pen.Join
          return p
function_tokens: def CreateFromPen ( pen ) : assert isinstance ( pen , wx . Pen ) p = GraphicsPen ( pen . Colour , pen . Width , pen . Style ) p . _cap = pen . Cap p . _dashes = pen . Dashes p . _join = pen . Join return p