wxPython – SetBackgroundColour() function in wx.StaticText
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.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
Syntax: wx.StaticText.SetBackgroundColour(self, colour)
Parameter Input Type Description colour wx.Colour Colour for background of static text.