# -*- coding: cp936 -*-
import sys
from PyQt4 import QtGui
class MainWindow(QtGui.QMainWindow):
def __init__(self,parent=None):
QtGui.QMainWindow.__init__(self,parent)
self.resize(250,150)
self.setWindowTitle(u‘状态栏‘)
self.statusBar().showMessage(u‘状态?‘)
app=QtGui.QApplication(sys.argv)
main=MainWindow()
main.show()
sys.exit(app.exec_())
IMG:
时间: 2024-11-06 07:15:30