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_())

 

PyQt5--StatusBar

 

相关文章:

  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-11-20
  • 2021-11-22
  • 2022-02-09
  • 2022-02-22
猜你喜欢
  • 2021-08-19
  • 2021-11-20
  • 2021-05-08
  • 2022-12-23
相关资源
相似解决方案