ウィンドウ作成
2014/12/10
Python2.7.6, pyQt4.11
とりあえず空っぽのウィンドウ
# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtGui
def main():
app = QtGui.QApplication(sys.argv)
w = QtGui.QWidget()
w.resize(250, 150)
w.move(300, 300)
w.setWindowTitle('Simple')
w.show()
sys.exit(app.exec_())
if __name__ == '__main__':
main()
参考
First programs in PyQt4
http://zetcode.com/gui/pyqt4/firstprograms/