# -*- coding:utf-8 -*-
'''
Created on Sep 13, 2018 @author: SaShuangYiBing
'''
import sys
from PyQt5.QtWidgets import QApplication,QWidget,QMainWindow class New_test(QMainWindow):
def __init__(self):
super().__init__()
self.initUI() def initUI(self):
self.statusBar().showMessage('Ready')
self.setGeometry(300,300,250,150)
self.setWindowTitle('StatusBar')
self.show() if __name__ == "__main__":
app = QApplication(sys.argv)
ex = New_test()
sys.exit(app.exec_())
相关文章
- 04-15PyQt5--StatusBar