- Unified main GUI too, but work is still in progress...
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@317 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
@@ -32,4 +32,14 @@ def get_py_str(a):
|
||||
'''Returns a python string out of a QString'''
|
||||
if pyqt:
|
||||
return str(a.toUtf8())
|
||||
return a #Already a python string in PySide
|
||||
return a #Already a python string in PySide
|
||||
|
||||
def set_utf8_text(component,text):
|
||||
if pyqt:
|
||||
component.setText(text.decode("utf-8"))
|
||||
else:
|
||||
component.setText(QtCore.QString.fromUtf8(text))
|
||||
def get_filename(filename):
|
||||
if pyqt:
|
||||
return str(filename.toUtf8())
|
||||
return filename[0]
|
Reference in New Issue
Block a user