From 7ab6ed8ed75df9fa943b773c13220c2fb2208872 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Mon, 10 Jan 2011 17:51:19 +0000 Subject: [PATCH] - Survey sends version number git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@267 014f5005-505e-4b48-8d0a-63407b615a7c --- relational_gui.py | 3 ++- relational_gui/surveyForm.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/relational_gui.py b/relational_gui.py index 47f4f5e..6a66589 100755 --- a/relational_gui.py +++ b/relational_gui.py @@ -84,8 +84,9 @@ if __name__ == "__main__": if x11: import sip from PyQt4 import QtCore, QtGui - from relational_gui import maingui, about + from relational_gui import maingui, about, surveyForm about.version=version + surveyForm.version=version app = QtGui.QApplication(sys.argv) Form = QtGui.QWidget() diff --git a/relational_gui/surveyForm.py b/relational_gui/surveyForm.py index 1893a25..7abc35e 100644 --- a/relational_gui/surveyForm.py +++ b/relational_gui/surveyForm.py @@ -55,6 +55,7 @@ class surveyForm (QtGui.QWidget): '''Sends the data inserted in the form''' #Creates the string post="Relational algebra\n" + post+="version: " + version + "\n" post+="system:" + str(self.ui.txtSystem.text().toUtf8())+ "\n" post+="country:" + str(self.ui.txtCountry.text().toUtf8())+ "\n" post+="school:" + str(self.ui.txtSchool.text().toUtf8())+ "\n"