PyQt5 – Set status bar message in window Last Updated : 26 Mar, 2020 Comments Improve Suggest changes Like Article Like Report 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 showMessage() method. Syntax : self.statusBar().showMessage(message) Argument : It takes string as argument. Action performed : It sets the message to status bar. Code : Python3 1== from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * import sys class Window(QMainWindow): def __init__(self): super().__init__() # set the title self.setWindowTitle("Python") # setting the geometry of window self.setGeometry(60, 60, 600, 400) # setting status bar message self.statusBar().showMessage("this is status bar") # creating a label widget self.label_1 = QLabel("Status Bar", self) # moving position self.label_1.move(100, 100) # setting up the border self.label_1.setStyleSheet("border :5px solid blue;") # resizing label self.label_1.resize(80, 100) # show all the widgets self.show() # create pyqt5 app App = QApplication(sys.argv) # create the instance of our Window window = Window() # start the app sys.exit(App.exec()) Output : Comment More infoAdvertise with us Next Article PyQt5 – Set status bar message in window R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Practice Tags : python Similar Reads How to set icon to a window in PyQt5 ? When we design a PyQt5 application we see an icon on the top left corner, by default it looks like this : In this tutorial, we will see how to change the icon according to the user need, in order to do this we use setWindowIcon() method and to load the icon QIcon will be used which belongs to QtGui 1 min read PyQt5 - Make Status Bar invisible In this article, we will see how to make status bar visible to the user. By default, when we create a status bar it is clearly visible to the user, but with the help of setVisible to False we can make the status bar invisible. Syntax : self.statusBar().setVisible(False) Argument : It take bool as ar 1 min read PyQt5 â Set color to a status bar In this article, we will see how to set a color to a status bar. By default, there is no color to a status bar but PyQt5 provides us a feature to edit the color of status bar. We can do this by using setStyleSheet() method. self.statusBar().setStyleSheet("background-color : yellow") Argument : It ta 1 min read PyQt5 â Set skin to Status Bar Unlike setting background images, skins adjust themselves according to the size of status bar. In background image if the image size is large and status bar size is small only that part of image is displayable that comprises the size of status bar. The main reason of setting skin to status bar is th 2 min read PyQt5 - Set tool tip to Status Bar In this article we will see how we can set tool tip to a status bar. The tooltip or infotip or a hint is a common graphical user interface element. It is used in conjunction with a cursor, usually a pointer. The user hovers the pointer over an item, without clicking it, and a tooltip may appearâa sm 2 min read Like