PyQt4 Programming Method for Status Bar Display Information
- 2021-06-28 13:20:12
- OfStack
Record 1 now, just understand the fur, maybe accumulate a lot
import sys
from PyQt4 import QtGui
class MainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
self.resize(250,150)
self.setWindowTitle('statusbar')
self.statusBar().showMessage('Ready',) # call statusBar Method to get the status bar, using showMessage Let the status bar display information
app = QtGui.QApplication(sys.argv)
main = MainWindow()
main.show()
sys.exit(app.exec_())