GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.GraphicsGradientStop
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.GraphicsGradientStop — wxPython 4.3.2 Docs

phoenix_title wx.GraphicsGradientStop¶

Represents a single gradient stop in a collection of gradient stops as represented by wx.GraphicsGradientStops.

Added in version 2.9.1.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class GraphicsGradientStop:

Inheritance diagram of GraphicsGradientStop


method_summary 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.


property_summary Properties Summary¶

Colour

See GetColour and SetColour

Position

See GetPosition and SetPosition


api Class API¶

class wx.GraphicsGradientStop(object)¶

Possible constructors:

GraphicsGradientStop(col=TransparentColour, pos=0.) -> None

Represents a single gradient stop in a collection of gradient stops as represented by GraphicsGradientStops.


Methods¶

__init__(self, col=TransparentColour, pos=0.)¶

Creates a stop with the given colour and position.

Parameters:
  • 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.

Return type:

None



GetColour(self)¶

Return the stop colour.

Return type:

wx.Colour



GetPosition(self)¶

Return the stop position.

Return type:

float



SetColour(self, col)¶

Change the stop colour.

Parameters:

col (wx.Colour) – The new colour.

Return type:

None



SetPosition(self, pos)¶

Change the stop position.

Parameters:

pos (float) – The new position, must always be in [0, 1] range.

Return type:

None


Properties¶

Colour¶

See GetColour and SetColour



Position¶

See GetPosition and SetPosition

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.