- Debian package can now be installed with pyside and not pyqt
- Make dist makes a file for the debian format - Make dist removes .svn from relational_pyside - setup.py installs relational_pyside module git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@326 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
@@ -125,8 +125,11 @@ class creatorForm(QtGui.QDialog):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
def editRelation(rel=None):
|
||||
def edit_relation(rel=None):
|
||||
'''Opens the editor for the given relation and returns a _new_ relation
|
||||
containing the new relation.
|
||||
If the user cancels, it returns None'''
|
||||
|
||||
ui = rel_edit.Ui_Dialog()
|
||||
Form = creatorForm(rel)
|
||||
|
||||
@@ -141,4 +144,4 @@ if __name__ == '__main__':
|
||||
import sys
|
||||
app = QtGui.QApplication(sys.argv)
|
||||
r=relation.relation("/home/salvo/dev/relational/trunk/samples/people.csv")
|
||||
print editRelation(r)
|
||||
print edit_relation(r)
|
||||
|
@@ -165,13 +165,13 @@ class relForm(QtGui.QMainWindow):
|
||||
def editRelation(self):
|
||||
import creator
|
||||
for i in self.ui.lstRelations.selectedItems():
|
||||
result=creator.editRelation(self.relations[compatibility.get_py_str(i.text())])
|
||||
result=creator.edit_relation(self.relations[compatibility.get_py_str(i.text())])
|
||||
if result!=None:
|
||||
self.relations[compatibility.get_py_str(i.text())]=result
|
||||
self.updateRelations()
|
||||
def newRelation(self):
|
||||
import creator
|
||||
result=creator.editRelation()
|
||||
result=creator.edit_relation()
|
||||
|
||||
if result==None:
|
||||
return
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file 'relational_gui/maingui.ui'
|
||||
#
|
||||
# Created: Thu Oct 13 20:42:44 2011
|
||||
# Created: Thu Oct 13 21:38:18 2011
|
||||
# by: PyQt4 UI code generator 4.8.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file 'relational_gui/survey.ui'
|
||||
#
|
||||
# Created: Thu Oct 13 20:42:44 2011
|
||||
# Created: Thu Oct 13 21:38:18 2011
|
||||
# by: PyQt4 UI code generator 4.8.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
Reference in New Issue
Block a user