from PyQt4 import QtGui ImportError: cannot import name 'QtGui'
<p>I'm new to UI design using qt - I installed qt and the pyqt4 wrapper. </p>

<p>I have this simply 'hello world' type script here:</p>

<pre><code>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()
</code></pre>

<p>Yet I get this error: </p>

<p>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 
    from PyQt4 import QtGui
ImportError: cannot import name 'QtGui'</p>

<p>The existing answers on SE do not seem to help. What causes this?</p>