- tests with pyside and fixes
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@332 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
@@ -32,11 +32,11 @@ def get_py_str(a):
|
||||
'''Returns a python string out of a QString'''
|
||||
if pyqt:
|
||||
return unicode(a.toUtf8(),'utf-8')
|
||||
return unicode(a.encode("utf-8")) #Already a python string in PySide
|
||||
return a #Already a python string in PySide
|
||||
|
||||
def set_utf8_text(component,text):
|
||||
if not pyqt:
|
||||
component.setText(text.decode("utf-8"))
|
||||
component.setText(text)
|
||||
else:
|
||||
component.setText(QtCore.QString.fromUtf8(text))
|
||||
def get_filename(filename):
|
||||
|
Reference in New Issue
Block a user