-
Notifications
You must be signed in to change notification settings - Fork 0
/
methods_options.py
119 lines (106 loc) · 5.78 KB
/
methods_options.py
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'methods_options.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_Dialog(QtGui.QDialog):
def setupUi(self, Dialog):
QtGui.QDialog.__init__(self)
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(349, 363)
Dialog.setMinimumSize(QtCore.QSize(349, 363))
Dialog.setMaximumSize(QtCore.QSize(349, 363))
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setGeometry(QtCore.QRect(40, 320, 291, 32))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok | QtGui.QDialogButtonBox.Cancel)
self.buttonBox.button(QtGui.QDialogButtonBox.Ok).setEnabled(False)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.widget = QtGui.QWidget(Dialog)
self.widget.setGeometry(QtCore.QRect(10, 10, 332, 291))
self.widget.setObjectName(_fromUtf8("widget"))
self.verticalLayout = QtGui.QVBoxLayout(self.widget)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.widget_2 = QtGui.QWidget(self.widget)
self.widget_2.setObjectName(_fromUtf8("widget_2"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget_2)
self.verticalLayout_2.setContentsMargins(-1, 20, -1, 0)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.gaussEliminationCheckBox = QtGui.QCheckBox(self.widget_2)
self.gaussEliminationCheckBox.setObjectName(_fromUtf8("gauss_elimination"))
self.verticalLayout_2.addWidget(self.gaussEliminationCheckBox)
self.verticalLayout.addWidget(self.widget_2)
self.widget_4 = QtGui.QWidget(self.widget)
self.widget_4.setObjectName(_fromUtf8("widget_4"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.widget_4)
self.verticalLayout_3.setContentsMargins(-1, 20, -1, 0)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.gaussJordanCheckBox = QtGui.QCheckBox(self.widget_4)
self.gaussJordanCheckBox.setObjectName(_fromUtf8("gauss_jordan"))
self.verticalLayout_3.addWidget(self.gaussJordanCheckBox)
self.verticalLayout.addWidget(self.widget_4)
self.widget_5 = QtGui.QWidget(self.widget)
self.widget_5.setObjectName(_fromUtf8("widget_5"))
self.verticalLayout_4 = QtGui.QVBoxLayout(self.widget_5)
self.verticalLayout_4.setContentsMargins(-1, 20, -1, 0)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.luDecompositionCheckBox = QtGui.QCheckBox(self.widget_5)
self.luDecompositionCheckBox.setObjectName(_fromUtf8("lu_decomposition"))
self.verticalLayout_4.addWidget(self.luDecompositionCheckBox)
self.verticalLayout.addWidget(self.widget_5)
self.widget_9 = QtGui.QWidget(self.widget)
self.widget_9.setObjectName(_fromUtf8("widget_9"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.widget_9)
self.verticalLayout_5.setContentsMargins(-1, 20, -1, 0)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.gaussSeidelCheckBox = QtGui.QCheckBox(self.widget_9)
self.gaussSeidelCheckBox.setObjectName(_fromUtf8("gauss_seidel"))
self.verticalLayout_5.addWidget(self.gaussSeidelCheckBox)
self.verticalLayout.addWidget(self.widget_9)
self.widget_8 = QtGui.QWidget(self.widget)
self.widget_8.setObjectName(_fromUtf8("widget_8"))
self.horizontalLayout_4 = QtGui.QHBoxLayout(self.widget_8)
self.horizontalLayout_4.setContentsMargins(-1, 0, -1, -1)
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
self.label_6 = QtGui.QLabel(self.widget_8)
self.label_6.setObjectName(_fromUtf8("label_6"))
self.horizontalLayout_4.addWidget(self.label_6)
self.gaussSeidelInitialGuessField = QtGui.QLineEdit(self.widget_8)
self.gaussSeidelInitialGuessField.setObjectName(_fromUtf8("gaussSeidelInitialGuessField"))
self.gaussSeidelInitialGuessField.setReadOnly(True)
self.horizontalLayout_4.addWidget(self.gaussSeidelInitialGuessField)
self.verticalLayout.addWidget(self.widget_8)
self.retranslateUi(Dialog)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
self.gaussEliminationCheckBox.setText(_translate("Dialog", "Gauss-Elimination", None))
self.gaussJordanCheckBox.setText(_translate("Dialog", "Gauss-Jordan", None))
self.luDecompositionCheckBox.setText(_translate("Dialog", "LU Decomposition", None))
self.gaussSeidelCheckBox.setText(_translate("Dialog", "Gauss-Seidel", None))
self.label_6.setText(_translate("Dialog", "Initial Guess:", None))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Dialog = QtGui.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())