1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
| #
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_Dialog2(object):
def setupUi(self, Dialog2):
Dialog2.setObjectName(_fromUtf8("Dialog2"))
Dialog2.resize(405, 338)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/Icones/GUI Icons/SOCRATES+Logo3.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Dialog2.setWindowIcon(icon)
self.widgetGeneralSettings_5 = QtGui.QWidget(Dialog2)
self.widgetGeneralSettings_5.setEnabled(True)
self.widgetGeneralSettings_5.setGeometry(QtCore.QRect(10, 0, 371, 321))
self.widgetGeneralSettings_5.setMouseTracking(False)
self.widgetGeneralSettings_5.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
self.widgetGeneralSettings_5.setAcceptDrops(False)
self.widgetGeneralSettings_5.setToolTip(_fromUtf8(""))
self.widgetGeneralSettings_5.setAutoFillBackground(False)
self.widgetGeneralSettings_5.setInputMethodHints(QtCore.Qt.ImhNone)
self.widgetGeneralSettings_5.setObjectName(_fromUtf8("widgetGeneralSettings_5"))
self.label_574 = QtGui.QLabel(self.widgetGeneralSettings_5)
self.label_574.setGeometry(QtCore.QRect(50, 10, 268, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.label_574.setFont(font)
self.label_574.setObjectName(_fromUtf8("label_574"))
self.label_581 = QtGui.QLabel(self.widgetGeneralSettings_5)
self.label_581.setGeometry(QtCore.QRect(9, 58, 112, 16))
self.label_581.setObjectName(_fromUtf8("label_581"))
self.lineEdit_17 = QtGui.QLineEdit(self.widgetGeneralSettings_5)
self.lineEdit_17.setGeometry(QtCore.QRect(146, 58, 31, 20))
self.lineEdit_17.setObjectName(_fromUtf8("lineEdit_17"))
self.label_616 = QtGui.QLabel(self.widgetGeneralSettings_5)
self.label_616.setGeometry(QtCore.QRect(9, 84, 80, 16))
self.label_616.setObjectName(_fromUtf8("label_616"))
self.lineEdit_18 = QtGui.QLineEdit(self.widgetGeneralSettings_5)
self.lineEdit_18.setGeometry(QtCore.QRect(146, 84, 31, 20))
self.lineEdit_18.setObjectName(_fromUtf8("lineEdit_18"))
self.label_621 = QtGui.QLabel(self.widgetGeneralSettings_5)
self.label_621.setGeometry(QtCore.QRect(9, 110, 100, 16))
self.label_621.setObjectName(_fromUtf8("label_621"))
self.lineEdit_19 = QtGui.QLineEdit(self.widgetGeneralSettings_5)
self.lineEdit_19.setGeometry(QtCore.QRect(146, 110, 31, 20))
self.lineEdit_19.setObjectName(_fromUtf8("lineEdit_19"))
self.label_625 = QtGui.QLabel(self.widgetGeneralSettings_5)
self.label_625.setGeometry(QtCore.QRect(9, 136, 74, 16))
self.label_625.setObjectName(_fromUtf8("label_625"))
self.lineEdit_20 = QtGui.QLineEdit(self.widgetGeneralSettings_5)
self.lineEdit_20.setGeometry(QtCore.QRect(146, 136, 31, 20))
self.lineEdit_20.setObjectName(_fromUtf8("lineEdit_20"))
self.layoutWidget = QtGui.QWidget(self.widgetGeneralSettings_5)
self.layoutWidget.setGeometry(QtCore.QRect(110, 290, 158, 26))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.pushButton_39 = QtGui.QPushButton(self.layoutWidget)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/Icones/GUI Icons/Accept.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_39.setIcon(icon1)
self.pushButton_39.setObjectName(_fromUtf8("pushButton_39"))
self.horizontalLayout.addWidget(self.pushButton_39)
self.pushButton_40 = QtGui.QPushButton(self.layoutWidget)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/Icones/GUI Icons/-.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_40.setIcon(icon2)
self.pushButton_40.setObjectName(_fromUtf8("pushButton_40"))
self.horizontalLayout.addWidget(self.pushButton_40)
self.retranslateUi(Dialog2)
QtCore.QMetaObject.connectSlotsByName(Dialog2)
def retranslateUi(self, Dialog2):
Dialog2.setWindowTitle(QtGui.QApplication.translate("Dialog2", "SOCRATES General Settings", None, QtGui.QApplication.UnicodeUTF8))
self.label_574.setText(QtGui.QApplication.translate("Dialog2", "***Axial-Flow Compressor General Settings***", None, QtGui.QApplication.UnicodeUTF8))
self.label_581.setText(QtGui.QApplication.translate("Dialog2", "NoOfTurboComponents", None, QtGui.QApplication.UnicodeUTF8))
self.label_616.setText(QtGui.QApplication.translate("Dialog2", "NoOfStreamlines", None, QtGui.QApplication.UnicodeUTF8))
self.label_621.setText(QtGui.QApplication.translate("Dialog2", "NoOfBoundaryPoints", None, QtGui.QApplication.UnicodeUTF8))
self.label_625.setText(QtGui.QApplication.translate("Dialog2", "NoOfTimeSteps", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_39.setText(QtGui.QApplication.translate("Dialog2", "Ok", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_40.setText(QtGui.QApplication.translate("Dialog2", "Reset", None, QtGui.QApplication.UnicodeUTF8))
import Socrates_rc
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Dialog2 = QtGui.QDialog()
ui = Ui_Dialog2()
ui.setupUi(Dialog2)
Dialog2.show()
sys.exit(app.exec_())
# |
Partager