In this article we are going to learn to change the colour of toolbar. We will simply use SetBackgroundColour() function in order to do this. SetBackgroundColour() dimply sets the background colour of the window. Itakes a wx.Colour parameter, i.e., the colour to be used as the background colour.
Syntax: wx.ToolBar.SetBackgroundColour(self, colour)
Parameter Input Type Description colour wx.Colour The colour to be used as the background colour
Return Type: bool
Returns: True if the colour was really changed, False if it was already set to this colour and nothing was done.
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