- 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:
LtWorf
2011-10-08 18:32:31 +00:00
parent 03426f5276
commit b186ddae39
9 changed files with 59 additions and 1408 deletions

View File

@@ -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]