Last active
August 29, 2015 14:03
-
-
Save nakamuray/72394541acd7a11ba68d to your computer and use it in GitHub Desktop.
Answering for this question https://twitter.com/nyaocat/status/481791765498720256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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