2011-10-08 07:39:39 +07:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2011-10-08 12:34:19 +07:00
|
|
|
# Form implementation generated from reading ui file 'relational_pyside/survey.ui'
|
2011-10-08 07:39:39 +07:00
|
|
|
#
|
2013-12-26 17:31:43 +07:00
|
|
|
# Created: Fri Dec 27 00:23:51 2013
|
2013-12-26 17:17:19 +07:00
|
|
|
# by: pyside-uic 0.2.15 running on PySide 1.2.1
|
2011-10-08 07:39:39 +07:00
|
|
|
#
|
|
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
|
|
|
from PySide import QtCore, QtGui
|
|
|
|
|
|
|
|
class Ui_Form(object):
|
|
|
|
def setupUi(self, Form):
|
|
|
|
Form.setObjectName("Form")
|
2011-10-08 12:34:19 +07:00
|
|
|
Form.resize(422, 313)
|
|
|
|
Form.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
2011-10-08 07:39:39 +07:00
|
|
|
self.verticalLayout = QtGui.QVBoxLayout(Form)
|
|
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
|
|
self.formLayout = QtGui.QGridLayout()
|
|
|
|
self.formLayout.setObjectName("formLayout")
|
|
|
|
self.txtSystem = QtGui.QLineEdit(Form)
|
|
|
|
self.txtSystem.setObjectName("txtSystem")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.txtSystem, 0, 1, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label = QtGui.QLabel(Form)
|
2011-10-08 12:34:19 +07:00
|
|
|
self.label.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label.setObjectName("label")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.label, 1, 0, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.txtCountry = QtGui.QLineEdit(Form)
|
|
|
|
self.txtCountry.setObjectName("txtCountry")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.txtCountry, 1, 1, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_2 = QtGui.QLabel(Form)
|
2011-10-08 12:34:19 +07:00
|
|
|
self.label_2.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_2.setObjectName("label_2")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.label_2, 2, 0, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.txtSchool = QtGui.QLineEdit(Form)
|
|
|
|
self.txtSchool.setObjectName("txtSchool")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.txtSchool, 2, 1, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_3 = QtGui.QLabel(Form)
|
2011-10-08 12:34:19 +07:00
|
|
|
self.label_3.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_3.setObjectName("label_3")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.label_3, 3, 0, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.txtAge = QtGui.QLineEdit(Form)
|
|
|
|
self.txtAge.setObjectName("txtAge")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.txtAge, 3, 1, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_4 = QtGui.QLabel(Form)
|
2011-10-08 12:34:19 +07:00
|
|
|
self.label_4.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_4.setObjectName("label_4")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.label_4, 4, 0, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.txtFind = QtGui.QLineEdit(Form)
|
|
|
|
self.txtFind.setObjectName("txtFind")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.txtFind, 4, 1, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_5 = QtGui.QLabel(Form)
|
2011-10-08 12:34:19 +07:00
|
|
|
self.label_5.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_5.setObjectName("label_5")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.label_5, 0, 0, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.label_6 = QtGui.QLabel(Form)
|
|
|
|
self.label_6.setObjectName("label_6")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.label_6, 6, 0, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.txtComments = QtGui.QTextEdit(Form)
|
|
|
|
self.txtComments.setTabChangesFocus(True)
|
|
|
|
self.txtComments.setObjectName("txtComments")
|
2011-10-08 12:34:19 +07:00
|
|
|
self.formLayout.addWidget(self.txtComments, 6, 1, 1, 1)
|
|
|
|
self.label_7 = QtGui.QLabel(Form)
|
|
|
|
self.label_7.setObjectName("label_7")
|
|
|
|
self.formLayout.addWidget(self.label_7, 5, 0, 1, 1)
|
|
|
|
self.txtEmail = QtGui.QLineEdit(Form)
|
|
|
|
self.txtEmail.setObjectName("txtEmail")
|
|
|
|
self.formLayout.addWidget(self.txtEmail, 5, 1, 1, 1)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.verticalLayout.addLayout(self.formLayout)
|
|
|
|
self.horizontalLayout = QtGui.QHBoxLayout()
|
|
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
2011-10-08 12:34:19 +07:00
|
|
|
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.horizontalLayout.addItem(spacerItem)
|
|
|
|
self.cmdCancel = QtGui.QPushButton(Form)
|
|
|
|
self.cmdCancel.setObjectName("cmdCancel")
|
|
|
|
self.horizontalLayout.addWidget(self.cmdCancel)
|
|
|
|
self.cmdClear = QtGui.QPushButton(Form)
|
|
|
|
self.cmdClear.setObjectName("cmdClear")
|
|
|
|
self.horizontalLayout.addWidget(self.cmdClear)
|
|
|
|
self.cmdSend = QtGui.QPushButton(Form)
|
2011-10-08 12:34:19 +07:00
|
|
|
self.cmdSend.setDefault(True)
|
2011-10-08 07:39:39 +07:00
|
|
|
self.cmdSend.setObjectName("cmdSend")
|
|
|
|
self.horizontalLayout.addWidget(self.cmdSend)
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
|
|
|
self.label.setBuddy(self.txtCountry)
|
|
|
|
self.label_2.setBuddy(self.txtSchool)
|
|
|
|
self.label_3.setBuddy(self.txtAge)
|
|
|
|
self.label_4.setBuddy(self.txtFind)
|
|
|
|
self.label_5.setBuddy(self.txtSystem)
|
|
|
|
self.label_6.setBuddy(self.txtComments)
|
2011-10-08 12:34:19 +07:00
|
|
|
self.label_7.setBuddy(self.txtEmail)
|
2011-10-08 07:39:39 +07:00
|
|
|
|
|
|
|
self.retranslateUi(Form)
|
2011-10-08 12:34:19 +07:00
|
|
|
QtCore.QObject.connect(self.cmdCancel, QtCore.SIGNAL("clicked()"), Form.close)
|
|
|
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL("clicked()"), self.txtComments.clear)
|
|
|
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL("clicked()"), self.txtFind.clear)
|
|
|
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL("clicked()"), self.txtAge.clear)
|
|
|
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL("clicked()"), self.txtSchool.clear)
|
|
|
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL("clicked()"), self.txtCountry.clear)
|
|
|
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL("clicked()"), self.txtSystem.clear)
|
|
|
|
QtCore.QObject.connect(self.txtSystem, QtCore.SIGNAL("returnPressed()"), self.txtCountry.setFocus)
|
|
|
|
QtCore.QObject.connect(self.txtCountry, QtCore.SIGNAL("returnPressed()"), self.txtSchool.setFocus)
|
|
|
|
QtCore.QObject.connect(self.txtSchool, QtCore.SIGNAL("returnPressed()"), self.txtAge.setFocus)
|
|
|
|
QtCore.QObject.connect(self.txtAge, QtCore.SIGNAL("returnPressed()"), self.txtFind.setFocus)
|
|
|
|
QtCore.QObject.connect(self.cmdSend, QtCore.SIGNAL("clicked()"), Form.send)
|
|
|
|
QtCore.QObject.connect(self.cmdClear, QtCore.SIGNAL("clicked()"), self.txtEmail.clear)
|
|
|
|
QtCore.QObject.connect(self.txtFind, QtCore.SIGNAL("returnPressed()"), self.txtEmail.setFocus)
|
|
|
|
QtCore.QObject.connect(self.txtEmail, QtCore.SIGNAL("returnPressed()"), self.txtComments.setFocus)
|
2011-10-08 07:39:39 +07:00
|
|
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
2011-10-08 12:34:19 +07:00
|
|
|
Form.setTabOrder(self.txtSystem, self.txtCountry)
|
|
|
|
Form.setTabOrder(self.txtCountry, self.txtSchool)
|
|
|
|
Form.setTabOrder(self.txtSchool, self.txtAge)
|
|
|
|
Form.setTabOrder(self.txtAge, self.txtFind)
|
|
|
|
Form.setTabOrder(self.txtFind, self.txtEmail)
|
|
|
|
Form.setTabOrder(self.txtEmail, self.txtComments)
|
|
|
|
Form.setTabOrder(self.txtComments, self.cmdSend)
|
|
|
|
Form.setTabOrder(self.cmdSend, self.cmdClear)
|
|
|
|
Form.setTabOrder(self.cmdClear, self.cmdCancel)
|
2011-10-08 07:39:39 +07:00
|
|
|
|
|
|
|
def retranslateUi(self, Form):
|
|
|
|
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Survey", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label.setText(QtGui.QApplication.translate("Form", "Country", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label_2.setText(QtGui.QApplication.translate("Form", "School", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
self.label_3.setText(QtGui.QApplication.translate("Form", "Age", 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_6.setText(QtGui.QApplication.translate("Form", "Comments", None, QtGui.QApplication.UnicodeUTF8))
|
2011-10-08 12:34:19 +07:00
|
|
|
self.label_7.setText(QtGui.QApplication.translate("Form", "Email (only if you want a reply)", None, QtGui.QApplication.UnicodeUTF8))
|
2011-10-08 07:39:39 +07:00
|
|
|
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.cmdSend.setText(QtGui.QApplication.translate("Form", "Send", None, QtGui.QApplication.UnicodeUTF8))
|
|
|
|
|