This is the description of standalone Python functions in the flatnotebook module.
AdjustColour | Brighten/darken input colour by percent and adjust alpha channel if needed. |
DrawButton | Draws a FlatNotebook tab. |
FormatColour | Convert the input colour into a valid wx.Colour instance, using whatever typemap |
LightColour | Brighten the input colour by a percentage. |
PaintStraightGradientBox | Draws a gradient coloured box from startColour to endColour. |
RandomColour | Creates a random colour. |
Brighten/darken input colour by percent and adjust alpha channel if needed.
Parameters: |
|
---|---|
Returns: | The modified colour. |
Draws a FlatNotebook tab.
Parameters: |
|
---|
Convert the input colour into a valid wx.Colour instance, using whatever typemap accepted by wxWidgets/wxPython.
Parameters: | colour – can be an instance of wx.Colour, a 3 or 4 integer tuple, a hex string, a string representing the colour name or None. |
---|---|
Returns: | a valid instance of wx.Colour or None if the input colour was None in the first place. |
Brighten the input colour by a percentage.
Parameters: |
|
---|
Draws a gradient coloured box from startColour to endColour.
Parameters: |
|
---|