Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

nosetestsGUI.py

By: marksweb on Jul 12th, 2012  |  syntax: Python  |  size: 4.67 KB  |  views: 47  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'nosetests.ui'
  4. #
  5. # Created: Thu Jul 12 11:43:20 2012
  6. #      by: PyQt4 UI code generator 4.9.1
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10. from PyQt4 import QtCore, QtGui
  11.  
  12. try:
  13.     _fromUtf8 = QtCore.QString.fromUtf8
  14. except AttributeError:
  15.     _fromUtf8 = lambda s: s
  16.  
  17. class Ui_Dialog(object):
  18.     def setupUi(self, Dialog):
  19.         Dialog.setObjectName(_fromUtf8("Dialog"))
  20.         Dialog.resize(400, 300)
  21.         self.selectProcess = QtGui.QComboBox(Dialog)
  22.         self.selectProcess.setGeometry(QtCore.QRect(30, 10, 241, 22))
  23.         self.selectProcess.setObjectName(_fromUtf8("selectProcess"))
  24.         self.selectProcess.addItem(_fromUtf8(""))
  25.         self.selectTest = QtGui.QComboBox(Dialog)
  26.         self.selectTest.setGeometry(QtCore.QRect(30, 40, 241, 22))
  27.         self.selectTest.setObjectName(_fromUtf8("selectTest"))
  28.         self.selectTest.addItem(_fromUtf8(""))
  29.         self.testButton = QtGui.QPushButton(Dialog)
  30.         self.testButton.setGeometry(QtCore.QRect(220, 250, 75, 23))
  31.         self.testButton.setObjectName(_fromUtf8("testButton"))
  32.         self.cancelButton = QtGui.QPushButton(Dialog)
  33.         self.cancelButton.setGeometry(QtCore.QRect(300, 250, 75, 23))
  34.         self.cancelButton.setObjectName(_fromUtf8("cancelButton"))
  35.         self.errorMsg = QtGui.QLabel(Dialog)
  36.         self.errorMsg.setGeometry(QtCore.QRect(20, 230, 351, 16))
  37.         font = QtGui.QFont()
  38.         font.setPointSize(10)
  39.         font.setBold(True)
  40.         font.setWeight(75)
  41.         self.errorMsg.setFont(font)
  42.         self.errorMsg.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
  43.         self.errorMsg.setText(_fromUtf8(""))
  44.         self.errorMsg.setObjectName(_fromUtf8("errorMsg"))
  45.         self.label = QtGui.QLabel(Dialog)
  46.         self.label.setGeometry(QtCore.QRect(30, 70, 51, 16))
  47.         self.label.setObjectName(_fromUtf8("label"))
  48.         self.gridLayoutWidget = QtGui.QWidget(Dialog)
  49.         self.gridLayoutWidget.setGeometry(QtCore.QRect(30, 90, 341, 111))
  50.         self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
  51.         self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
  52.         self.gridLayout.setMargin(0)
  53.         self.gridLayout.setVerticalSpacing(6)
  54.         self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
  55.         self.pyDebugFails = QtGui.QCheckBox(self.gridLayoutWidget)
  56.         self.pyDebugFails.setObjectName(_fromUtf8("pyDebugFails"))
  57.         self.gridLayout.addWidget(self.pyDebugFails, 3, 0, 1, 1)
  58.         self.verbose = QtGui.QCheckBox(self.gridLayoutWidget)
  59.         self.verbose.setObjectName(_fromUtf8("verbose"))
  60.         self.gridLayout.addWidget(self.verbose, 0, 0, 1, 1)
  61.         self.pyDebug = QtGui.QCheckBox(self.gridLayoutWidget)
  62.         self.pyDebug.setObjectName(_fromUtf8("pyDebug"))
  63.         self.gridLayout.addWidget(self.pyDebug, 2, 0, 1, 1)
  64.         self.doctest = QtGui.QCheckBox(self.gridLayoutWidget)
  65.         self.doctest.setObjectName(_fromUtf8("doctest"))
  66.         self.gridLayout.addWidget(self.doctest, 1, 0, 1, 1)
  67.  
  68.         self.retranslateUi(Dialog)
  69.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  70.  
  71.     def retranslateUi(self, Dialog):
  72.         Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
  73.         self.selectProcess.setItemText(0, QtGui.QApplication.translate("Dialog", "Select a process", None, QtGui.QApplication.UnicodeUTF8))
  74.         self.selectTest.setItemText(0, QtGui.QApplication.translate("Dialog", "Select a test", None, QtGui.QApplication.UnicodeUTF8))
  75.         self.testButton.setText(QtGui.QApplication.translate("Dialog", "Run Test", None, QtGui.QApplication.UnicodeUTF8))
  76.         self.cancelButton.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
  77.         self.label.setText(QtGui.QApplication.translate("Dialog", "Options:", None, QtGui.QApplication.UnicodeUTF8))
  78.         self.pyDebugFails.setText(QtGui.QApplication.translate("Dialog", "Drop into debugger on failures", None, QtGui.QApplication.UnicodeUTF8))
  79.         self.verbose.setText(QtGui.QApplication.translate("Dialog", "Verbose", None, QtGui.QApplication.UnicodeUTF8))
  80.         self.pyDebug.setText(QtGui.QApplication.translate("Dialog", "Drop into debugger on errors", None, QtGui.QApplication.UnicodeUTF8))
  81.         self.doctest.setText(QtGui.QApplication.translate("Dialog", "Enable Doctest", None, QtGui.QApplication.UnicodeUTF8))
  82.  
  83.  
  84. if __name__ == "__main__":
  85.     import sys
  86.     app = QtGui.QApplication(sys.argv)
  87.     Dialog = QtGui.QDialog()
  88.     ui = Ui_Dialog()
  89.     ui.setupUi(Dialog)
  90.     Dialog.show()
  91.     sys.exit(app.exec_())