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

2016/08/15

Python2.7.6, PySide1.2.4

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

import sys
from PySide 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()