2010-09-01 



king011a 
Hi
My development eviroment:
os: windows xp
python: python-3.1.2.msi
pyqt: PyQt-Py3.1-gpl-4.7.4-1.exe
code:
import sys    from PyQt4 import QtCore, QtGui    app = 
QtGui.QApplication(sys.argv)    s = QtCore.QString()    sys.exit(app.exec_())
It always show me
in 'module'
s = QtCore.QString()
AttributeError: 'module' object has no attribute 'QString'
I chaged code:
import sys    from PyQt4.QtGui import *    from PyQt4.QtCore import *    app = 
QApplication(sys.argv)    s = QString()    sys.exit(app.exec_())
Then it always show me like this:
in 'module'
s = QString()
NameError: name 'QString' is not defined
what should i do?
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to