VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

wxPython - SetBackgroundColour() function in wx.StaticText

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