空のメインウィンドウ作成

2016/08/15

Python2.7.10, PyQt4.11.3

# -*- coding: utf-8 -*-

import sys
from PyQt4 import QtGui


class MyMainWindow(QtGui.QMainWindow):
    def __init__(self, *argv, **keywords ):
        super(MyMainWindow,self).__init__(*argv,**keywords)

def main():
    app = QtGui.QApplication(sys.argv)
    w = MyMainWindow()
    w.show()
    sys.exit(app.exec_())

if __name__ == '__main__':
    main()