On 8 October 2010 18:40, Nathan Weston <[email protected]> wrote:
> My program looks like this:
> # qthello.py
> import sys
> import sip
> import PyQt4.QtCore
> import PyQt4.QtGui
>
> app = PyQt4.QtGui.QApplication(sys.argv)
> window = PyQt4.QtGui.QMainWindow()
> window.setCentralWidget(PyQt4.QtGui.QLabel("Hello"))
> window.show()
> sys.exit(app.exec_())
> # end of qthello.py

Your application is incorrect. You have to import PyQt4 like so:

from PyQt4 import QtCore, QtGui

Also, there is no need to import sip.

-- 
Raoul Snyman
B.Tech Information Technology (Software Engineering)
E-Mail:   [email protected]
Web:      http://www.saturnlaboratories.co.za/
Blog:      http://blog.saturnlaboratories.co.za/
Mobile:   082 550 3754
Registered Linux User #333298 (http://counter.li.org)

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to