On Mon, 20 May 2013 20:03:16 +0100, Chris Roebuck <ch...@cjroebuck.com>
wrote:
> Using osx 10.8.3 I installed Qt5.1.0 beta1 using the binary installer,
then
> built sip 4.14.7 dev snapshot and PyQt5 against Qt5.1.0 beta1
> 
> Using python3 I'm getting the following error when I try to run this
simple
> script:
> 
> #!/usr/bin/env python
> from PyQt5.QtCore import *
> from PyQt5.QtGui import *
> from PyQt5.QtWebKit import *
> from PyQt5.QtNetwork import *
> 
> QApplication.instance()
> 
> 
> 
> NameError: name 'QApplication' is not defined
> 
> Any ideas what i'm missing?

from PyQt5.QtWidgets import QApplication

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to