ターミナルで次の PyQt コードの例を実行すると:
#coding = utf8
import sys
from PyQt4 import QtGui
app = QtGui.QApplication(sys.argv)
widget = QtGui.QWidget()
widget.resize(250, 150)
widget.setWindowTitle('simple')
widget.show()
sys.exit(app.exec_())
次のメッセージを受け取りました。
Got bus address: "unix:abstract=/tmp/dbus-i0C7rhmhFB,guid=6b91faa5b449dbb3ca941d6e0000001d"
Connected to accessibility bus at: "unix:abstract=/tmp/dbus-i0C7rhmhFB,guid=6b91faa5b449dbb3ca941d6e0000001d"
Registered DEC: true
Error in contacting registry
"org.freedesktop.DBus.Error.NoReply"
"Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
Could not query active accessibility event listeners.
Registered event listener change listener: true
ウィンドウは約 20 秒後に表示されます。空のウィンドウを表示するのは非常に迅速であるべきだと思います。この問題を解決するには?
バージョン情報は次のとおりです。
- Ubuntu 12.04 LTS 64ビット
- パイソン 2.7.3rc2
- QT 4.8.0 & PyQT 4.9.1