wx.PenInfo¶This class is a helper used for wx.Pen creation using named parameter idiom: it allows specifying various wx.Pen attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to wx.Pen constructors.
For instance, to create a dotted blue pen with the given join style you could do
pen = wx.Pen(wx.PenInfo(wx.BLUE).Style(wx.PENSTYLE_DOT).Join(wx.JOIN_BEVEL))
New in version 4.1/wxWidgets-3.1.1.
Class Hierarchy¶
Inheritance diagram for class PenInfo:

Methods Summary¶Set high pen quality. |
|
Set low pen quality. |
|
Set the pen quality. |
|
Class API¶wx.PenInfo(object)¶Possible constructors:
PenInfo(colour=Colour(), width=1, style=PENSTYLE_SOLID)
This class is a helper used for Pen creation using named parameter idiom: it allows specifying various Pen attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to Pen constructors.
__init__(self, colour=Colour(), width=1, style=PENSTYLE_SOLID)¶GetJoin(self)¶GetQuality(self)¶GetStyle(self)¶GetWidth(self)¶int
HighQuality(self)¶Set high pen quality.
This is the same as calling Quality with PEN_QUALITY_HIGH.
New in version 4.1/wxWidgets-3.1.5.
IsTransparent(self)¶bool
LowQuality(self)¶Set low pen quality.
This is the same as calling Quality with PEN_QUALITY_LOW.
New in version 4.1/wxWidgets-3.1.5.
Quality(self, quality)¶Set the pen quality.
Using LowQuality or HighQuality is usually more convenient.
quality (PenQuality) –
New in version 4.1/wxWidgets-3.1.5.
See also
Width(self, width)¶width (int) –