- Can send email in survery (apparently for some people it is too difficult to understand i can't reply to them if they use an anonymous survey to contact me)
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@310 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
8a21307d22
commit
d6a3309014
@ -2,6 +2,7 @@
|
|||||||
- Incorrect relational operations now raise an exception instead of returning None
|
- Incorrect relational operations now raise an exception instead of returning None
|
||||||
- Forces relations to have correct names for attributes
|
- Forces relations to have correct names for attributes
|
||||||
- Colored output in readline mode
|
- Colored output in readline mode
|
||||||
|
- Can send email in survery
|
||||||
|
|
||||||
1.0
|
1.0
|
||||||
- Adds history in the GUI
|
- Adds history in the GUI
|
||||||
|
@ -2,71 +2,89 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'survey.ui'
|
# Form implementation generated from reading ui file 'survey.ui'
|
||||||
#
|
#
|
||||||
# Created: Tue Nov 11 11:46:10 2008
|
# Created: Tue Jun 14 17:21:38 2011
|
||||||
# by: PyQt4 UI code generator 4.4.2
|
# 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!
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
|
try:
|
||||||
|
_fromUtf8 = QtCore.QString.fromUtf8
|
||||||
|
except AttributeError:
|
||||||
|
_fromUtf8 = lambda s: s
|
||||||
|
|
||||||
class Ui_Form(object):
|
class Ui_Form(object):
|
||||||
def setupUi(self, Form):
|
def setupUi(self, Form):
|
||||||
Form.setObjectName("Form")
|
Form.setObjectName(_fromUtf8("Form"))
|
||||||
Form.resize(400,322)
|
Form.resize(422, 313)
|
||||||
|
Form.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||||
self.verticalLayout = QtGui.QVBoxLayout(Form)
|
self.verticalLayout = QtGui.QVBoxLayout(Form)
|
||||||
self.verticalLayout.setObjectName("verticalLayout")
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||||
self.formLayout = QtGui.QGridLayout()
|
self.formLayout = QtGui.QGridLayout()
|
||||||
self.formLayout.setObjectName("formLayout")
|
self.formLayout.setObjectName(_fromUtf8("formLayout"))
|
||||||
self.txtSystem = QtGui.QLineEdit(Form)
|
self.txtSystem = QtGui.QLineEdit(Form)
|
||||||
self.txtSystem.setObjectName("txtSystem")
|
self.txtSystem.setObjectName(_fromUtf8("txtSystem"))
|
||||||
self.formLayout.addWidget(self.txtSystem,0,1,1,1)
|
self.formLayout.addWidget(self.txtSystem, 0, 1, 1, 1)
|
||||||
self.label = QtGui.QLabel(Form)
|
self.label = QtGui.QLabel(Form)
|
||||||
self.label.setObjectName("label")
|
self.label.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||||
self.formLayout.addWidget(self.label,1,0,1,1)
|
self.label.setObjectName(_fromUtf8("label"))
|
||||||
|
self.formLayout.addWidget(self.label, 1, 0, 1, 1)
|
||||||
self.txtCountry = QtGui.QLineEdit(Form)
|
self.txtCountry = QtGui.QLineEdit(Form)
|
||||||
self.txtCountry.setObjectName("txtCountry")
|
self.txtCountry.setObjectName(_fromUtf8("txtCountry"))
|
||||||
self.formLayout.addWidget(self.txtCountry,1,1,1,1)
|
self.formLayout.addWidget(self.txtCountry, 1, 1, 1, 1)
|
||||||
self.label_2 = QtGui.QLabel(Form)
|
self.label_2 = QtGui.QLabel(Form)
|
||||||
self.label_2.setObjectName("label_2")
|
self.label_2.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||||
self.formLayout.addWidget(self.label_2,2,0,1,1)
|
self.label_2.setObjectName(_fromUtf8("label_2"))
|
||||||
|
self.formLayout.addWidget(self.label_2, 2, 0, 1, 1)
|
||||||
self.txtSchool = QtGui.QLineEdit(Form)
|
self.txtSchool = QtGui.QLineEdit(Form)
|
||||||
self.txtSchool.setObjectName("txtSchool")
|
self.txtSchool.setObjectName(_fromUtf8("txtSchool"))
|
||||||
self.formLayout.addWidget(self.txtSchool,2,1,1,1)
|
self.formLayout.addWidget(self.txtSchool, 2, 1, 1, 1)
|
||||||
self.label_3 = QtGui.QLabel(Form)
|
self.label_3 = QtGui.QLabel(Form)
|
||||||
self.label_3.setObjectName("label_3")
|
self.label_3.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||||
self.formLayout.addWidget(self.label_3,3,0,1,1)
|
self.label_3.setObjectName(_fromUtf8("label_3"))
|
||||||
|
self.formLayout.addWidget(self.label_3, 3, 0, 1, 1)
|
||||||
self.txtAge = QtGui.QLineEdit(Form)
|
self.txtAge = QtGui.QLineEdit(Form)
|
||||||
self.txtAge.setObjectName("txtAge")
|
self.txtAge.setObjectName(_fromUtf8("txtAge"))
|
||||||
self.formLayout.addWidget(self.txtAge,3,1,1,1)
|
self.formLayout.addWidget(self.txtAge, 3, 1, 1, 1)
|
||||||
self.label_4 = QtGui.QLabel(Form)
|
self.label_4 = QtGui.QLabel(Form)
|
||||||
self.label_4.setObjectName("label_4")
|
self.label_4.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||||
self.formLayout.addWidget(self.label_4,4,0,1,1)
|
self.label_4.setObjectName(_fromUtf8("label_4"))
|
||||||
|
self.formLayout.addWidget(self.label_4, 4, 0, 1, 1)
|
||||||
self.txtFind = QtGui.QLineEdit(Form)
|
self.txtFind = QtGui.QLineEdit(Form)
|
||||||
self.txtFind.setObjectName("txtFind")
|
self.txtFind.setObjectName(_fromUtf8("txtFind"))
|
||||||
self.formLayout.addWidget(self.txtFind,4,1,1,1)
|
self.formLayout.addWidget(self.txtFind, 4, 1, 1, 1)
|
||||||
self.label_5 = QtGui.QLabel(Form)
|
self.label_5 = QtGui.QLabel(Form)
|
||||||
self.label_5.setObjectName("label_5")
|
self.label_5.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||||
self.formLayout.addWidget(self.label_5,0,0,1,1)
|
self.label_5.setObjectName(_fromUtf8("label_5"))
|
||||||
|
self.formLayout.addWidget(self.label_5, 0, 0, 1, 1)
|
||||||
self.label_6 = QtGui.QLabel(Form)
|
self.label_6 = QtGui.QLabel(Form)
|
||||||
self.label_6.setObjectName("label_6")
|
self.label_6.setObjectName(_fromUtf8("label_6"))
|
||||||
self.formLayout.addWidget(self.label_6,5,0,1,1)
|
self.formLayout.addWidget(self.label_6, 6, 0, 1, 1)
|
||||||
self.txtComments = QtGui.QTextEdit(Form)
|
self.txtComments = QtGui.QTextEdit(Form)
|
||||||
self.txtComments.setTabChangesFocus(True)
|
self.txtComments.setTabChangesFocus(True)
|
||||||
self.txtComments.setObjectName("txtComments")
|
self.txtComments.setObjectName(_fromUtf8("txtComments"))
|
||||||
self.formLayout.addWidget(self.txtComments,5,1,1,1)
|
self.formLayout.addWidget(self.txtComments, 6, 1, 1, 1)
|
||||||
|
self.label_7 = QtGui.QLabel(Form)
|
||||||
|
self.label_7.setObjectName(_fromUtf8("label_7"))
|
||||||
|
self.formLayout.addWidget(self.label_7, 5, 0, 1, 1)
|
||||||
|
self.txtEmail = QtGui.QLineEdit(Form)
|
||||||
|
self.txtEmail.setObjectName(_fromUtf8("txtEmail"))
|
||||||
|
self.formLayout.addWidget(self.txtEmail, 5, 1, 1, 1)
|
||||||
self.verticalLayout.addLayout(self.formLayout)
|
self.verticalLayout.addLayout(self.formLayout)
|
||||||
self.horizontalLayout = QtGui.QHBoxLayout()
|
self.horizontalLayout = QtGui.QHBoxLayout()
|
||||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||||
spacerItem = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
|
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
||||||
self.horizontalLayout.addItem(spacerItem)
|
self.horizontalLayout.addItem(spacerItem)
|
||||||
self.cmdCancel = QtGui.QPushButton(Form)
|
self.cmdCancel = QtGui.QPushButton(Form)
|
||||||
self.cmdCancel.setObjectName("cmdCancel")
|
self.cmdCancel.setObjectName(_fromUtf8("cmdCancel"))
|
||||||
self.horizontalLayout.addWidget(self.cmdCancel)
|
self.horizontalLayout.addWidget(self.cmdCancel)
|
||||||
self.cmdClear = QtGui.QPushButton(Form)
|
self.cmdClear = QtGui.QPushButton(Form)
|
||||||
self.cmdClear.setObjectName("cmdClear")
|
self.cmdClear.setObjectName(_fromUtf8("cmdClear"))
|
||||||
self.horizontalLayout.addWidget(self.cmdClear)
|
self.horizontalLayout.addWidget(self.cmdClear)
|
||||||
self.cmdSend = QtGui.QPushButton(Form)
|
self.cmdSend = QtGui.QPushButton(Form)
|
||||||
self.cmdSend.setObjectName("cmdSend")
|
self.cmdSend.setDefault(True)
|
||||||
|
self.cmdSend.setObjectName(_fromUtf8("cmdSend"))
|
||||||
self.horizontalLayout.addWidget(self.cmdSend)
|
self.horizontalLayout.addWidget(self.cmdSend)
|
||||||
self.verticalLayout.addLayout(self.horizontalLayout)
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||||
self.label.setBuddy(self.txtCountry)
|
self.label.setBuddy(self.txtCountry)
|
||||||
@ -75,30 +93,34 @@ class Ui_Form(object):
|
|||||||
self.label_4.setBuddy(self.txtFind)
|
self.label_4.setBuddy(self.txtFind)
|
||||||
self.label_5.setBuddy(self.txtSystem)
|
self.label_5.setBuddy(self.txtSystem)
|
||||||
self.label_6.setBuddy(self.txtComments)
|
self.label_6.setBuddy(self.txtComments)
|
||||||
|
self.label_7.setBuddy(self.txtEmail)
|
||||||
|
|
||||||
self.retranslateUi(Form)
|
self.retranslateUi(Form)
|
||||||
QtCore.QObject.connect(self.cmdCancel,QtCore.SIGNAL("clicked()"),Form.close)
|
QtCore.QObject.connect(self.cmdCancel, QtCore.SIGNAL(_fromUtf8("clicked()")), Form.close)
|
||||||
QtCore.QObject.connect(self.cmdClear,QtCore.SIGNAL("clicked()"),self.txtComments.clear)
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtComments.clear)
|
||||||
QtCore.QObject.connect(self.cmdClear,QtCore.SIGNAL("clicked()"),self.txtFind.clear)
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtFind.clear)
|
||||||
QtCore.QObject.connect(self.cmdClear,QtCore.SIGNAL("clicked()"),self.txtAge.clear)
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtAge.clear)
|
||||||
QtCore.QObject.connect(self.cmdClear,QtCore.SIGNAL("clicked()"),self.txtSchool.clear)
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtSchool.clear)
|
||||||
QtCore.QObject.connect(self.cmdClear,QtCore.SIGNAL("clicked()"),self.txtCountry.clear)
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtCountry.clear)
|
||||||
QtCore.QObject.connect(self.cmdClear,QtCore.SIGNAL("clicked()"),self.txtSystem.clear)
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtSystem.clear)
|
||||||
QtCore.QObject.connect(self.txtSystem,QtCore.SIGNAL("returnPressed()"),self.txtCountry.setFocus)
|
QtCore.QObject.connect(self.txtSystem, QtCore.SIGNAL(_fromUtf8("returnPressed()")), self.txtCountry.setFocus)
|
||||||
QtCore.QObject.connect(self.txtCountry,QtCore.SIGNAL("returnPressed()"),self.txtSchool.setFocus)
|
QtCore.QObject.connect(self.txtCountry, QtCore.SIGNAL(_fromUtf8("returnPressed()")), self.txtSchool.setFocus)
|
||||||
QtCore.QObject.connect(self.txtSchool,QtCore.SIGNAL("returnPressed()"),self.txtAge.setFocus)
|
QtCore.QObject.connect(self.txtSchool, QtCore.SIGNAL(_fromUtf8("returnPressed()")), self.txtAge.setFocus)
|
||||||
QtCore.QObject.connect(self.txtAge,QtCore.SIGNAL("returnPressed()"),self.txtFind.setFocus)
|
QtCore.QObject.connect(self.txtAge, QtCore.SIGNAL(_fromUtf8("returnPressed()")), self.txtFind.setFocus)
|
||||||
QtCore.QObject.connect(self.txtFind,QtCore.SIGNAL("returnPressed()"),self.txtComments.setFocus)
|
QtCore.QObject.connect(self.cmdSend, QtCore.SIGNAL(_fromUtf8("clicked()")), Form.send)
|
||||||
QtCore.QObject.connect(self.cmdSend,QtCore.SIGNAL("clicked()"),Form.send)
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtEmail.clear)
|
||||||
|
QtCore.QObject.connect(self.txtFind, QtCore.SIGNAL(_fromUtf8("returnPressed()")), self.txtEmail.setFocus)
|
||||||
|
QtCore.QObject.connect(self.txtEmail, QtCore.SIGNAL(_fromUtf8("returnPressed()")), self.txtComments.setFocus)
|
||||||
QtCore.QMetaObject.connectSlotsByName(Form)
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
||||||
Form.setTabOrder(self.txtSystem,self.txtCountry)
|
Form.setTabOrder(self.txtSystem, self.txtCountry)
|
||||||
Form.setTabOrder(self.txtCountry,self.txtSchool)
|
Form.setTabOrder(self.txtCountry, self.txtSchool)
|
||||||
Form.setTabOrder(self.txtSchool,self.txtAge)
|
Form.setTabOrder(self.txtSchool, self.txtAge)
|
||||||
Form.setTabOrder(self.txtAge,self.txtFind)
|
Form.setTabOrder(self.txtAge, self.txtFind)
|
||||||
Form.setTabOrder(self.txtFind,self.txtComments)
|
Form.setTabOrder(self.txtFind, self.txtEmail)
|
||||||
Form.setTabOrder(self.txtComments,self.cmdSend)
|
Form.setTabOrder(self.txtEmail, self.txtComments)
|
||||||
Form.setTabOrder(self.cmdSend,self.cmdClear)
|
Form.setTabOrder(self.txtComments, self.cmdSend)
|
||||||
Form.setTabOrder(self.cmdClear,self.cmdCancel)
|
Form.setTabOrder(self.cmdSend, self.cmdClear)
|
||||||
|
Form.setTabOrder(self.cmdClear, self.cmdCancel)
|
||||||
|
|
||||||
def retranslateUi(self, Form):
|
def retranslateUi(self, Form):
|
||||||
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Survey", None, QtGui.QApplication.UnicodeUTF8))
|
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Survey", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
@ -108,6 +130,7 @@ class Ui_Form(object):
|
|||||||
self.label_4.setText(QtGui.QApplication.translate("Form", "How did you find relational", None, QtGui.QApplication.UnicodeUTF8))
|
self.label_4.setText(QtGui.QApplication.translate("Form", "How did you find relational", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.label_5.setText(QtGui.QApplication.translate("Form", "System", None, QtGui.QApplication.UnicodeUTF8))
|
self.label_5.setText(QtGui.QApplication.translate("Form", "System", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.label_6.setText(QtGui.QApplication.translate("Form", "Comments", None, QtGui.QApplication.UnicodeUTF8))
|
self.label_6.setText(QtGui.QApplication.translate("Form", "Comments", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.label_7.setText(QtGui.QApplication.translate("Form", "Email (only if you want a reply)", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.cmdCancel.setText(QtGui.QApplication.translate("Form", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
|
self.cmdCancel.setText(QtGui.QApplication.translate("Form", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.cmdClear.setText(QtGui.QApplication.translate("Form", "Clear", None, QtGui.QApplication.UnicodeUTF8))
|
self.cmdClear.setText(QtGui.QApplication.translate("Form", "Clear", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.cmdSend.setText(QtGui.QApplication.translate("Form", "Send", None, QtGui.QApplication.UnicodeUTF8))
|
self.cmdSend.setText(QtGui.QApplication.translate("Form", "Send", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
@ -1,130 +1,144 @@
|
|||||||
<ui version="4.0" >
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
<class>Form</class>
|
<class>Form</class>
|
||||||
<widget class="QWidget" name="Form" >
|
<widget class="QWidget" name="Form">
|
||||||
<property name="geometry" >
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>422</width>
|
||||||
<height>322</height>
|
<height>313</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle">
|
||||||
<string>Survey</string>
|
<string>Survey</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="locale" >
|
<property name="locale">
|
||||||
<locale country="UnitedStates" language="English" />
|
<locale language="English" country="UnitedStates"/>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="formLayout" >
|
<layout class="QGridLayout" name="formLayout">
|
||||||
<item row="0" column="1" >
|
<item row="0" column="1">
|
||||||
<widget class="QLineEdit" name="txtSystem" />
|
<widget class="QLineEdit" name="txtSystem"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label" >
|
<widget class="QLabel" name="label">
|
||||||
<property name="locale" >
|
<property name="locale">
|
||||||
<locale country="UnitedStates" language="English" />
|
<locale language="English" country="UnitedStates"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Country</string>
|
<string>Country</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>txtCountry</cstring>
|
<cstring>txtCountry</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1" >
|
<item row="1" column="1">
|
||||||
<widget class="QLineEdit" name="txtCountry" />
|
<widget class="QLineEdit" name="txtCountry"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="label_2" >
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="locale" >
|
<property name="locale">
|
||||||
<locale country="UnitedStates" language="English" />
|
<locale language="English" country="UnitedStates"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>School</string>
|
<string>School</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>txtSchool</cstring>
|
<cstring>txtSchool</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1" >
|
<item row="2" column="1">
|
||||||
<widget class="QLineEdit" name="txtSchool" />
|
<widget class="QLineEdit" name="txtSchool"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" >
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="label_3" >
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="locale" >
|
<property name="locale">
|
||||||
<locale country="UnitedStates" language="English" />
|
<locale language="English" country="UnitedStates"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Age</string>
|
<string>Age</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>txtAge</cstring>
|
<cstring>txtAge</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1" >
|
<item row="3" column="1">
|
||||||
<widget class="QLineEdit" name="txtAge" />
|
<widget class="QLineEdit" name="txtAge"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" >
|
<item row="4" column="0">
|
||||||
<widget class="QLabel" name="label_4" >
|
<widget class="QLabel" name="label_4">
|
||||||
<property name="locale" >
|
<property name="locale">
|
||||||
<locale country="UnitedStates" language="English" />
|
<locale language="English" country="UnitedStates"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>How did you find relational</string>
|
<string>How did you find relational</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>txtFind</cstring>
|
<cstring>txtFind</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1" >
|
<item row="4" column="1">
|
||||||
<widget class="QLineEdit" name="txtFind" />
|
<widget class="QLineEdit" name="txtFind"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_5" >
|
<widget class="QLabel" name="label_5">
|
||||||
<property name="locale" >
|
<property name="locale">
|
||||||
<locale country="UnitedStates" language="English" />
|
<locale language="English" country="UnitedStates"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>System</string>
|
<string>System</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>txtSystem</cstring>
|
<cstring>txtSystem</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" >
|
<item row="6" column="0">
|
||||||
<widget class="QLabel" name="label_6" >
|
<widget class="QLabel" name="label_6">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Comments</string>
|
<string>Comments</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>txtComments</cstring>
|
<cstring>txtComments</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1" >
|
<item row="6" column="1">
|
||||||
<widget class="QTextEdit" name="txtComments" >
|
<widget class="QTextEdit" name="txtComments">
|
||||||
<property name="tabChangesFocus" >
|
<property name="tabChangesFocus">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="label_7">
|
||||||
|
<property name="text">
|
||||||
|
<string>Email (only if you want a reply)</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>txtEmail</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QLineEdit" name="txtEmail"/>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout" >
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer" >
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation" >
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>40</width>
|
<width>40</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
@ -133,25 +147,25 @@
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="cmdCancel" >
|
<widget class="QPushButton" name="cmdCancel">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Cancel</string>
|
<string>Cancel</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="cmdClear" >
|
<widget class="QPushButton" name="cmdClear">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Clear</string>
|
<string>Clear</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="cmdSend" >
|
<widget class="QPushButton" name="cmdSend">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Send</string>
|
<string>Send</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="default" >
|
<property name="default">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@ -166,6 +180,7 @@
|
|||||||
<tabstop>txtSchool</tabstop>
|
<tabstop>txtSchool</tabstop>
|
||||||
<tabstop>txtAge</tabstop>
|
<tabstop>txtAge</tabstop>
|
||||||
<tabstop>txtFind</tabstop>
|
<tabstop>txtFind</tabstop>
|
||||||
|
<tabstop>txtEmail</tabstop>
|
||||||
<tabstop>txtComments</tabstop>
|
<tabstop>txtComments</tabstop>
|
||||||
<tabstop>cmdSend</tabstop>
|
<tabstop>cmdSend</tabstop>
|
||||||
<tabstop>cmdClear</tabstop>
|
<tabstop>cmdClear</tabstop>
|
||||||
@ -179,11 +194,11 @@
|
|||||||
<receiver>Form</receiver>
|
<receiver>Form</receiver>
|
||||||
<slot>close()</slot>
|
<slot>close()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>228</x>
|
<x>202</x>
|
||||||
<y>294</y>
|
<y>384</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>180</x>
|
<x>180</x>
|
||||||
<y>319</y>
|
<y>319</y>
|
||||||
</hint>
|
</hint>
|
||||||
@ -195,11 +210,11 @@
|
|||||||
<receiver>txtComments</receiver>
|
<receiver>txtComments</receiver>
|
||||||
<slot>clear()</slot>
|
<slot>clear()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>288</x>
|
<x>265</x>
|
||||||
<y>298</y>
|
<y>384</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>291</x>
|
<x>291</x>
|
||||||
<y>248</y>
|
<y>248</y>
|
||||||
</hint>
|
</hint>
|
||||||
@ -211,13 +226,13 @@
|
|||||||
<receiver>txtFind</receiver>
|
<receiver>txtFind</receiver>
|
||||||
<slot>clear()</slot>
|
<slot>clear()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>270</x>
|
<x>265</x>
|
||||||
<y>294</y>
|
<y>384</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>284</x>
|
<x>400</x>
|
||||||
<y>153</y>
|
<y>151</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
@ -227,11 +242,11 @@
|
|||||||
<receiver>txtAge</receiver>
|
<receiver>txtAge</receiver>
|
||||||
<slot>clear()</slot>
|
<slot>clear()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>269</x>
|
<x>265</x>
|
||||||
<y>299</y>
|
<y>384</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>257</x>
|
<x>257</x>
|
||||||
<y>123</y>
|
<y>123</y>
|
||||||
</hint>
|
</hint>
|
||||||
@ -243,11 +258,11 @@
|
|||||||
<receiver>txtSchool</receiver>
|
<receiver>txtSchool</receiver>
|
||||||
<slot>clear()</slot>
|
<slot>clear()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>310</x>
|
<x>265</x>
|
||||||
<y>299</y>
|
<y>384</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>317</x>
|
<x>317</x>
|
||||||
<y>87</y>
|
<y>87</y>
|
||||||
</hint>
|
</hint>
|
||||||
@ -259,13 +274,13 @@
|
|||||||
<receiver>txtCountry</receiver>
|
<receiver>txtCountry</receiver>
|
||||||
<slot>clear()</slot>
|
<slot>clear()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>298</x>
|
<x>265</x>
|
||||||
<y>303</y>
|
<y>384</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>326</x>
|
<x>400</x>
|
||||||
<y>47</y>
|
<y>70</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
@ -275,13 +290,13 @@
|
|||||||
<receiver>txtSystem</receiver>
|
<receiver>txtSystem</receiver>
|
||||||
<slot>clear()</slot>
|
<slot>clear()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>287</x>
|
<x>265</x>
|
||||||
<y>303</y>
|
<y>384</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>302</x>
|
<x>400</x>
|
||||||
<y>18</y>
|
<y>39</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
@ -291,11 +306,11 @@
|
|||||||
<receiver>txtCountry</receiver>
|
<receiver>txtCountry</receiver>
|
||||||
<slot>setFocus()</slot>
|
<slot>setFocus()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>213</x>
|
<x>213</x>
|
||||||
<y>22</y>
|
<y>22</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>224</x>
|
<x>224</x>
|
||||||
<y>52</y>
|
<y>52</y>
|
||||||
</hint>
|
</hint>
|
||||||
@ -307,11 +322,11 @@
|
|||||||
<receiver>txtSchool</receiver>
|
<receiver>txtSchool</receiver>
|
||||||
<slot>setFocus()</slot>
|
<slot>setFocus()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>268</x>
|
<x>268</x>
|
||||||
<y>54</y>
|
<y>54</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>276</x>
|
<x>276</x>
|
||||||
<y>89</y>
|
<y>89</y>
|
||||||
</hint>
|
</hint>
|
||||||
@ -323,11 +338,11 @@
|
|||||||
<receiver>txtAge</receiver>
|
<receiver>txtAge</receiver>
|
||||||
<slot>setFocus()</slot>
|
<slot>setFocus()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>355</x>
|
<x>355</x>
|
||||||
<y>85</y>
|
<y>85</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>358</x>
|
<x>358</x>
|
||||||
<y>118</y>
|
<y>118</y>
|
||||||
</hint>
|
</hint>
|
||||||
@ -339,29 +354,13 @@
|
|||||||
<receiver>txtFind</receiver>
|
<receiver>txtFind</receiver>
|
||||||
<slot>setFocus()</slot>
|
<slot>setFocus()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>375</x>
|
<x>375</x>
|
||||||
<y>123</y>
|
<y>123</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>375</x>
|
<x>400</x>
|
||||||
<y>156</y>
|
<y>151</y>
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
<connection>
|
|
||||||
<sender>txtFind</sender>
|
|
||||||
<signal>returnPressed()</signal>
|
|
||||||
<receiver>txtComments</receiver>
|
|
||||||
<slot>setFocus()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel" >
|
|
||||||
<x>332</x>
|
|
||||||
<y>154</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel" >
|
|
||||||
<x>335</x>
|
|
||||||
<y>200</y>
|
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
@ -371,16 +370,64 @@
|
|||||||
<receiver>Form</receiver>
|
<receiver>Form</receiver>
|
||||||
<slot>send()</slot>
|
<slot>send()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>381</x>
|
<x>327</x>
|
||||||
<y>309</y>
|
<y>384</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>396</x>
|
<x>396</x>
|
||||||
<y>320</y>
|
<y>320</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>cmdClear</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>txtEmail</receiver>
|
||||||
|
<slot>clear()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>233</x>
|
||||||
|
<y>367</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>242</x>
|
||||||
|
<y>168</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>txtFind</sender>
|
||||||
|
<signal>returnPressed()</signal>
|
||||||
|
<receiver>txtEmail</receiver>
|
||||||
|
<slot>setFocus()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>302</x>
|
||||||
|
<y>140</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>302</x>
|
||||||
|
<y>167</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>txtEmail</sender>
|
||||||
|
<signal>returnPressed()</signal>
|
||||||
|
<receiver>txtComments</receiver>
|
||||||
|
<slot>setFocus()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>302</x>
|
||||||
|
<y>167</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>302</x>
|
||||||
|
<y>255</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
</connections>
|
</connections>
|
||||||
<slots>
|
<slots>
|
||||||
<slot>send()</slot>
|
<slot>send()</slot>
|
||||||
|
@ -61,6 +61,7 @@ class surveyForm (QtGui.QWidget):
|
|||||||
post+="school:" + str(self.ui.txtSchool.text().toUtf8())+ "\n"
|
post+="school:" + str(self.ui.txtSchool.text().toUtf8())+ "\n"
|
||||||
post+="age:" + str(self.ui.txtAge.text().toUtf8())+ "\n"
|
post+="age:" + str(self.ui.txtAge.text().toUtf8())+ "\n"
|
||||||
post+="find:" + str(self.ui.txtFind.text().toUtf8())+ "\n"
|
post+="find:" + str(self.ui.txtFind.text().toUtf8())+ "\n"
|
||||||
|
post+="email:" + str(self.ui.txtEmail.text().toUtf8())+"\n"
|
||||||
post+="comments:" + str(self.ui.txtComments.toPlainText().toUtf8())
|
post+="comments:" + str(self.ui.txtComments.toPlainText().toUtf8())
|
||||||
|
|
||||||
#Clears the form
|
#Clears the form
|
||||||
@ -69,6 +70,7 @@ class surveyForm (QtGui.QWidget):
|
|||||||
self.ui.txtSchool.clear()
|
self.ui.txtSchool.clear()
|
||||||
self.ui.txtAge.clear()
|
self.ui.txtAge.clear()
|
||||||
self.ui.txtFind.clear()
|
self.ui.txtFind.clear()
|
||||||
|
self.ui.txtEmail.clear()
|
||||||
self.ui.txtComments.clear()
|
self.ui.txtComments.clear()
|
||||||
|
|
||||||
#sends the string
|
#sends the string
|
||||||
|
Loading…
Reference in New Issue
Block a user