wx.GraphicsGradientStop¶Represents a single gradient stop in a collection of gradient stops as represented by wx.GraphicsGradientStops.
New in version 2.9.1.
Methods Summary¶__init__ |
Creates a stop with the given colour and position. |
GetColour |
Return the stop colour. |
GetPosition |
Return the stop position. |
SetColour |
Change the stop colour. |
SetPosition |
Change the stop position. |
Class API¶wx.GraphicsGradientStop(object)¶Possible constructors:
GraphicsGradientStop(col=TransparentColour, pos=0.)
Represents a single gradient stop in a collection of gradient stops as represented by GraphicsGradientStops.
__init__(self, col=TransparentColour, pos=0.)¶Creates a stop with the given colour and position.
| Parameters: |
|
|---|
GetPosition(self)¶Return the stop position.
| Return type: | float |
|---|
SetPosition(self, pos)¶Change the stop position.
| Parameters: | pos (float) – The new position, must always be in [0, 1] range. |
|---|
Position¶See GetPosition and SetPosition