Skip to content

Instantly share code, notes, and snippets.

@nakamuray
Last active August 29, 2015 14:03
Show Gist options
  • Save nakamuray/72394541acd7a11ba68d to your computer and use it in GitHub Desktop.
Save nakamuray/72394541acd7a11ba68d to your computer and use it in GitHub Desktop.
# vim: fileencoding=utf-8
import sys
from PyQt4 import QtGui
app = QtGui.QApplication(sys.argv)
# 代入して呼ぶと動く (ウィンドウが出る)
win = QtGui.QMainWindow()
win.show()
# 直接呼ぶと動かない (ウィンドウが出ない)
#QtGui.QMainWindow().show()
sys.exit(app.exec_())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment