from PySide2.QtWidgets import QApplication, QStatusBar, QMainWindow,
QLabel, QProgressBar
from PySide2.QtGui import QIcon
import sys
class Window(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("Rakshit_Coding()")
self.setGeometry(350,200,480,420)
self.lengthLabel = QLabel("Current Status")
self.progressbar = QProgressBar()
self.progressbar.setMinimum(0)
self.progressbar.setMaximum(100)
#Stausbar Creation
self.myStatus = QStatusBar()
self.progressbar.setValue(45)
self.myStatus.addWidget(self.lengthLabel, 1)
self.myStatus.addWidget(self.progressbar, 2)
self.setStatusBar(self.myStatus)
if __name__ == "__main__":
gui = QApplication(sys.argv)
window = Window()
window.show()
gui.exec_()
sys.exit(0)
Output...
Comments
Post a Comment
If you've any doubts, please let me text