GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.GraphicsGradientStop — wxPython 4.3.2 Docs
|
Creates a stop with the given colour and position. |
|
Return the stop colour. |
|
Return the stop position. |
|
Change the stop colour. |
|
Change the stop position. |
Properties Summary¶See |
Class API¶Possible constructors:
GraphicsGradientStop(col=TransparentColour, pos=0.) -> None
Represents a single gradient stop in a collection of gradient stops as represented by GraphicsGradientStops.
Creates a stop with the given colour and position.
col (wx.Colour) – The colour of this stop. Note that the alpha component of the colour is honoured, thus allowing the background colours to partially show through the gradient.
pos (float) – The stop position. Must be in the [0, 1] range, with 0 being the beginning and 1 the end of the gradient.
None
Return the stop position.
float
Change the stop colour.
col (wx.Colour) – The new colour.
None
Change the stop position.
pos (float) – The new position, must always be in [0, 1] range.
None
See GetPosition and SetPosition