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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -