- warns about saving relations
- no more empty fields git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@328 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
80cd45cf0c
commit
24021ddeb0
@ -95,7 +95,11 @@ class creatorForm(QtGui.QDialog):
|
|||||||
for i in range(1,self.table.rowCount()):
|
for i in range(1,self.table.rowCount()):
|
||||||
hlist=[]
|
hlist=[]
|
||||||
for j in range(self.table.columnCount()):
|
for j in range(self.table.columnCount()):
|
||||||
|
try:
|
||||||
hlist.append(compatibility.get_py_str(self.table.item(i,j).text()))
|
hlist.append(compatibility.get_py_str(self.table.item(i,j).text()))
|
||||||
|
except:
|
||||||
|
QtGui.QMessageBox.information(None,QtGui.QApplication.translate("Form", "Error"),QtGui.QApplication.translate("Form", "Unset value in %d,%d!"% (i+1,j+1)) )
|
||||||
|
return None
|
||||||
r.content.add(tuple(hlist))
|
r.content.add(tuple(hlist))
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'relational_gui/maingui.ui'
|
# Form implementation generated from reading ui file 'relational_gui/maingui.ui'
|
||||||
#
|
#
|
||||||
# Created: Thu Oct 13 21:38:18 2011
|
# Created: Thu Oct 13 22:31:56 2011
|
||||||
# by: PyQt4 UI code generator 4.8.3
|
# by: PyQt4 UI code generator 4.8.3
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
@ -58,6 +58,13 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>Remember that new relations and modified relations are not automatically saved</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'relational_gui/survey.ui'
|
# Form implementation generated from reading ui file 'relational_gui/survey.ui'
|
||||||
#
|
#
|
||||||
# Created: Thu Oct 13 21:38:18 2011
|
# Created: Thu Oct 13 22:31:56 2011
|
||||||
# by: PyQt4 UI code generator 4.8.3
|
# by: PyQt4 UI code generator 4.8.3
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'relational_pyside/maingui.ui'
|
# Form implementation generated from reading ui file 'relational_pyside/maingui.ui'
|
||||||
#
|
#
|
||||||
# Created: Thu Oct 13 21:38:18 2011
|
# Created: Thu Oct 13 22:31:56 2011
|
||||||
# by: pyside-uic 0.2.13 running on PySide 1.0.7
|
# by: pyside-uic 0.2.13 running on PySide 1.0.7
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'relational_pyside/survey.ui'
|
# Form implementation generated from reading ui file 'relational_pyside/survey.ui'
|
||||||
#
|
#
|
||||||
# Created: Thu Oct 13 21:38:18 2011
|
# Created: Thu Oct 13 22:31:56 2011
|
||||||
# by: pyside-uic 0.2.13 running on PySide 1.0.7
|
# by: pyside-uic 0.2.13 running on PySide 1.0.7
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
Loading…
Reference in New Issue
Block a user