VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

wxPython - SetForegroundColour() function in wx.StaticText

Last Updated : 18 Jun, 2020
In this article we are going to learn about SetForegroundColour() function associated with wx.StaticText class of wxPython. SetForegroundColour() function is simply used to set foreground colour of a static text to a different colour. It takes wx.Colour argument to set the background colour.
Syntax: wx.StaticText.SetForegroundColour(self, colour) Parameters:
Parameter Input Type Description
colour wx.Colour Foreground colour to set.
Code Example: Output Window: 👁 Image
Comment