运行pyqt4生成py文件增加代码

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    Form = QtGui.QWidget()
    ui = Ui_Form()
    ui.setupUi(Form)
    Form.show()
    sys.exit(app.exec_())

  

posted @ 2018-05-27 02:33  LLSix  阅读(156)  评论(0编辑  收藏  举报