PyQt5--StatusBar

 1 # -*- coding:utf-8 -*-
 2 '''
 3 Created on Sep 13, 2018
 4 
 5 @author: SaShuangYiBing
 6 '''
 7 import sys
 8 from PyQt5.QtWidgets import QApplication,QWidget,QMainWindow
 9 
10 class New_test(QMainWindow):
11     def __init__(self):
12         super().__init__()
13         self.initUI()
14         
15     def initUI(self):
16         self.statusBar().showMessage('Ready')
17         self.setGeometry(300,300,250,150)
18         self.setWindowTitle('StatusBar')
19         self.show()
20         
21 if __name__ == "__main__":
22     app = QApplication(sys.argv)
23     ex = New_test()
24     sys.exit(app.exec_())

 

 

posted @ 2018-09-13 11:26  iSZ  阅读(2015)  评论(0编辑  收藏  举报