Added sample relations

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@32 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2008-07-25 21:08:56 +07:00
parent 2caad7a868
commit a340186071
3 changed files with 23 additions and 6 deletions

@ -24,7 +24,7 @@ import about
class Ui_Form(object):
def __init__(self):
self.Dialog=None
self.About=None
self.relations={} #Dictionary for relations
def execute(self):
try:
@ -86,12 +86,11 @@ class Ui_Form(object):
del self.relations[str(i.text().toUtf8())]
self.updateRelations()
def showAbout(self):
if self.Dialog==None:
self.Dialog = QtGui.QDialog()
if self.About==None:
self.About = QtGui.QDialog()
ui = about.Ui_Dialog()
ui.setupUi(self.Dialog)
self.Dialog.show()
#sys.exit(app.exec_())
ui.setupUi(self.About)
self.About.show()
def loadRelation(self):
res=QtGui.QInputDialog.getText(None, QtGui.QApplication.translate("Form", "New relation"),QtGui.QApplication.translate("Form", "Insert the name for the new relation"))

@ -0,0 +1,9 @@
id room
0 1
1 4
2 2
3 2
4 5
5 1
6 5
7 1

@ -0,0 +1,9 @@
room phone
0 1515
1 1516
2 1617
3 1601
4 1041
5 9212
6 1424
7 1294