# wx.GraphicsPen¶

A wx.GraphicsPen is a native representation of a pen.

The contents are specific and private to the respective renderer. Instances are ref counted and can therefore be assigned as usual. The only way to get a valid instance is via wx.GraphicsContext.CreatePen or wx.GraphicsRenderer.CreatePen .

## Class Hierarchy¶

Inheritance diagram for class GraphicsPen:

## Class API¶

class wx.GraphicsPen(GraphicsObject)

A GraphicsPen is a native representation of a pen.