[PyQt] about the argument of QLatin1Char()?

DDGG ddcatgg at gmail.com
Sat Dec 8 20:58:10 GMT 2007


from PyQt4 import QtCore

ch = 1
print QtCore.QLatin1Char(ch)


Traceback (most recent call last):
  File "test.py", line 4, in <module>
    print QtCore.QLatin1Char(ch)
TypeError: argument 1 of QLatin1Char() has an invalid type


Why? QLatin1Char() function needs a argument what type is char, uchar,
as int, isn't it?
Thanks!


More information about the PyQt mailing list