python - from PyQt4 import QtGui ImportError: cannot import name 'QtGui' -
i'm new ui design using qt - installed qt , pyqt4 wrapper.
i have 'hello world' type script here:
import sys 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()
yet error:
c:\python34\python.exe c:/users/me/desktop/python/testqt.py traceback (most recent call last): file "c:/users/leo/desktop/python/testqt.py", line 2, in pyqt4 import qtgui importerror: cannot import name 'qtgui'
the existing answers on se not seem help. causes this?
in case installed pyqt4-4.11.4-gpl-py3.4-qt4.8.7-x32.exe , worked
-- had installed pyqt4-4.11.4-gpl-py3.4-qt4.8.7-x64.exe , got error reported above.
Comments
Post a Comment