pyqt5 statusbar如何使用
参考
https://blog.csdn.net/weiaitaowang/article/details/52077209
这个博客可以参考设计好看的icon,来使软件变得美观
https://blog.csdn.net/weiaitaowang/article/details/52077209
#coding=utf-8
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys
class Example(QMainWindow):
def __init__(self):
super().__init__()
self.InitUI()
def InitUI(self):
self.statusBar().showMessage('准备就绪')
self.setGeometry(300,300,400,300)
self.setWindowTitle('关注微信公众号:学点编程吧--状态栏')
self.show()
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = Example()
sys.exit(app.exec_())