In this article, we will see how to set message to status bar of window. A status bar is a graphical control element which poses an information area typically found at the window’s bottom. It can be divided into sections to group information. Its job is primarily to display information about the current state of its window.
In order to do this we will use
Syntax : self.statusBar().showMessage(message)
Argument : It takes string as argument.
Action performed : It sets the message to status bar.
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.