pyqt - How do i remove the error in QtString. Am using pyqt4 and Python 3.4.3 -
i'm new in python , started working pyqt design gui application. have succeeded generate python file following lines generating errors:
_fromutf8 = qtcore.qstring.fromutf8
qstring seems no longer in qtcore. how write line? below part of code
from pyqt4 import qtcore, qtgui import sys try: _fromutf8 = qtcore.qstring.fromutf8 except attributeerror: def _fromutf8(s): return s
there no qstring now, qt use unicode directly instead replace it:
_fromutf8 = lambda s: s
Comments
Post a Comment