PyQt5 - Name of Progress Bar Last Updated : 22 Apr, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we will see how to set and get the name of progress bar. Name of progress bar is basically a named assigned to a progress bar by the developer. Name is set in order to classify the progress bar as while designing the GUI (Graphical User Interface) application, progress bar is created in order to classify them names are given to them like "loading", "downloading", "transfer" etc. In order to set the name to progress bar setAccessibleName method is used and to get the name accessibleName method is used, if no name is assigned accessibleName() method will return blank string. Syntax : bar.setAccessibleName(name) bar.accessibleName() Argument : setAccessibleName takes string as argument. accessibleName takes no argument. Return : setAccessibleName returns None. accessibleName returns string. Below is the implementation Python3 1== # importing libraries from PyQt5.QtWidgets import * from PyQt5 import QtCore, QtGui from PyQt5.QtGui import * from PyQt5.QtCore import * import sys class Window(QMainWindow): def __init__(self): super().__init__() # setting title self.setWindowTitle("Python ") # setting geometry self.setGeometry(100, 100, 600, 400) # calling method self.UiComponents() # showing all the widgets self.show() # method for widgets def UiComponents(self): # creating progress bar bar = QProgressBar(self) # setting geometry to progress bar bar.setGeometry(200, 100, 200, 30) # setting the value bar.setValue(30) # setting alignment to center bar.setAlignment(Qt.AlignCenter) # setting up the name bar.setAccessibleName("Loading") # getting the name name = bar.accessibleName() # creating label to display the name label = QLabel("Name of progress bar = " + name, self) # adjusting the size of label label.adjustSize() # changing the position of label label.move(200, 150) 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 - Skin to Bar of Progress Bar R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Practice Tags : python Similar Reads PyQt5 - Skin to Bar of Progress Bar In this article we will see how to set the skin to the bar of progress bar. Skin is basically a background image but it adjust it self to the size of bar of progress bar. Below is the representation of bar of progress bar with background image and bar of progress bar with skin. In order to do this w 2 min read PyQt5 - Image bar as Progress Bar In this article we will see how to add image to bar of progress bar. We can set the background image but in order to set image to a bar we have to modify the progress bar chunk CSS, below is how normal background image and background image to a bar looks like. In order to do this below is the CSS st 2 min read PyQt5 - Padding in Progress Bar In this article we will see how to add padding to the progress bar. Padding is the space between border and the bar of progress bar. Below is the representation of normal progress bar vs padded progress bar. In order to do this we have to change the padding size in the CSS style sheet of progress ba 2 min read PyQt5 - Progress Bar description In this article, we will see how exactly we can set and get the description of the progress bar. The description of the progress bar is basically detailed information of the progress bar like what thing progress bar represent and what formatting and styling we have done, there is no particular forma 2 min read PyQt5 - format() method for Progress bar We can set the formatting and show text using setFormat method in Progress Bar, format method is used to get the formatting of the progress bar. Note : By default formatting of progress bar is '%p%' i.e used to print percentage, so if no specific formatting is set format method will return '%p%'. Sy 2 min read PyQt5 - Changing border of Progress Bar In this article we will see how to change or set the border to a Progress Bar. By default, PyQt5 provides border to the progress bar but we can change it according to our convenience. Below is how default border progress bar vs styled border progress bar looks like. In order to do this we have to ch 2 min read Like