![]() |
VOOZH | about |
In this article we are going to learn about GetForegroundColour() function associated with wx.StaticText class of wxPython. GetForegroundColour() function returns the colour that is used for font or foreground of StaticText. Colour is in format of (R, G, B, A). No parameters are required in GetForegroundColour() function.
Syntax: wx.StaticText.GetForegroundColour(self) Parameters: No parameters are required in GetForegroundColour() function. Return Type: wx.Colour
Code Example:
Console Output:
(10, 20, 255, 255)
Output Window: 👁 Image