VOOZH about

URL: https://www.geeksforgeeks.org/python/wxpython-getforegroundcolour-function-in-wx-statictext/

⇱ wxPython - GetForegroundColour() function in wx.StaticText - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

wxPython - GetForegroundColour() function in wx.StaticText

Last Updated : 10 Oct, 2022

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

Comment