class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(1213, 744) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth()) Form.setSizePolicy(sizePolicy) self.verticalLayout_6 = QtGui.QVBoxLayout(Form) self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.splitter_side_bar = QtGui.QSplitter(Form) self.splitter_side_bar.setOrientation(QtCore.Qt.Horizontal) self.splitter_side_bar.setObjectName(_fromUtf8("splitter_side_bar")) self.layoutWidget = QtGui.QWidget(self.splitter_side_bar) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.tree_data = QtGui.QTreeWidget(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tree_data.sizePolicy().hasHeightForWidth()) self.tree_data.setSizePolicy(sizePolicy) self.tree_data.setColumnCount(2) self.tree_data.setObjectName(_fromUtf8("tree_data")) self.verticalLayout.addWidget(self.tree_data) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_17 = QtGui.QLabel(self.layoutWidget) self.label_17.setMaximumSize(QtCore.QSize(60, 25)) font = QtGui.QFont() font.setPointSize(13) font.setItalic(False) font.setUnderline(False) font.setStrikeOut(False) self.label_17.setFont(font) self.label_17.setTextFormat(QtCore.Qt.RichText) self.label_17.setScaledContents(True) self.label_17.setObjectName(_fromUtf8("label_17")) self.horizontalLayout_3.addWidget(self.label_17) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout_3) self.table_images = QtGui.QTableWidget(self.layoutWidget) self.table_images.setObjectName(_fromUtf8("table_images")) self.table_images.setColumnCount(3) self.table_images.setRowCount(0) item = QtGui.QTableWidgetItem() self.table_images.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_images.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_images.setHorizontalHeaderItem(2, item) self.verticalLayout.addWidget(self.table_images) self.btn_newImage = QtGui.QPushButton(self.layoutWidget) self.btn_newImage.setMaximumSize(QtCore.QSize(16777215, 25)) self.btn_newImage.setObjectName(_fromUtf8("btn_newImage")) self.verticalLayout.addWidget(self.btn_newImage) self.horizontalLayout_13 = QtGui.QHBoxLayout() self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) self.label_18 = QtGui.QLabel(self.layoutWidget) self.label_18.setMaximumSize(QtCore.QSize(100, 25)) font = QtGui.QFont() font.setPointSize(13) font.setItalic(False) font.setUnderline(False) font.setStrikeOut(False) self.label_18.setFont(font) self.label_18.setTextFormat(QtCore.Qt.RichText) self.label_18.setScaledContents(True) self.label_18.setObjectName(_fromUtf8("label_18")) self.horizontalLayout_13.addWidget(self.label_18) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_13.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_13) self.horizontalLayout_9 = QtGui.QHBoxLayout() self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.label_13 = QtGui.QLabel(self.layoutWidget) self.label_13.setMaximumSize(QtCore.QSize(25, 30)) self.label_13.setObjectName(_fromUtf8("label_13")) self.horizontalLayout_9.addWidget(self.label_13) self.combo_select_source = QtGui.QComboBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.combo_select_source.sizePolicy().hasHeightForWidth()) self.combo_select_source.setSizePolicy(sizePolicy) self.combo_select_source.setMaximumSize(QtCore.QSize(150, 20)) self.combo_select_source.setObjectName(_fromUtf8("combo_select_source")) self.horizontalLayout_9.addWidget(self.combo_select_source) self.label_14 = QtGui.QLabel(self.layoutWidget) self.label_14.setMaximumSize(QtCore.QSize(20, 30)) self.label_14.setObjectName(_fromUtf8("label_14")) self.horizontalLayout_9.addWidget(self.label_14) self.combo_select_val = QtGui.QComboBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.combo_select_val.sizePolicy().hasHeightForWidth()) self.combo_select_val.setSizePolicy(sizePolicy) self.combo_select_val.setMaximumSize(QtCore.QSize(150, 20)) self.combo_select_val.setObjectName(_fromUtf8("combo_select_val")) self.horizontalLayout_9.addWidget(self.combo_select_val) spacerItem2 = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_9.addItem(spacerItem2) self.verticalLayout.addLayout(self.horizontalLayout_9) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_5 = QtGui.QLabel(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setMaximumSize(QtCore.QSize(10, 20)) self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1) self.label_10 = QtGui.QLabel(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth()) self.label_10.setSizePolicy(sizePolicy) self.label_10.setMaximumSize(QtCore.QSize(10, 20)) self.label_10.setAlignment(QtCore.Qt.AlignCenter) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout.addWidget(self.label_10, 1, 0, 1, 1) self.label_11 = QtGui.QLabel(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth()) self.label_11.setSizePolicy(sizePolicy) self.label_11.setMaximumSize(QtCore.QSize(10, 20)) self.label_11.setAlignment(QtCore.Qt.AlignCenter) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout.addWidget(self.label_11, 0, 2, 1, 1) self.label_12 = QtGui.QLabel(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth()) self.label_12.setSizePolicy(sizePolicy) self.label_12.setMaximumSize(QtCore.QSize(10, 20)) self.label_12.setAlignment(QtCore.Qt.AlignCenter) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout.addWidget(self.label_12, 1, 2, 1, 1) self.combo_x = QtGui.QComboBox(self.layoutWidget) self.combo_x.setObjectName(_fromUtf8("combo_x")) self.gridLayout.addWidget(self.combo_x, 0, 1, 1, 1) self.combo_y = QtGui.QComboBox(self.layoutWidget) self.combo_y.setObjectName(_fromUtf8("combo_y")) self.gridLayout.addWidget(self.combo_y, 1, 1, 1, 1) self.combo_t = QtGui.QComboBox(self.layoutWidget) self.combo_t.setObjectName(_fromUtf8("combo_t")) self.gridLayout.addWidget(self.combo_t, 0, 3, 1, 1) self.combo_c = QtGui.QComboBox(self.layoutWidget) self.combo_c.setObjectName(_fromUtf8("combo_c")) self.gridLayout.addWidget(self.combo_c, 1, 3, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.table_slice = QtGui.QTableWidget(self.layoutWidget) self.table_slice.setObjectName(_fromUtf8("table_slice")) self.table_slice.setColumnCount(3) self.table_slice.setRowCount(0) item = QtGui.QTableWidgetItem() self.table_slice.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_slice.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_slice.setHorizontalHeaderItem(2, item) self.verticalLayout.addWidget(self.table_slice) self.horizontalLayout_14 = QtGui.QHBoxLayout() self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14")) self.label_19 = QtGui.QLabel(self.layoutWidget) self.label_19.setMaximumSize(QtCore.QSize(100, 25)) font = QtGui.QFont() font.setPointSize(13) font.setItalic(False) font.setUnderline(False) font.setStrikeOut(False) self.label_19.setFont(font) self.label_19.setTextFormat(QtCore.Qt.RichText) self.label_19.setScaledContents(True) self.label_19.setObjectName(_fromUtf8("label_19")) self.horizontalLayout_14.addWidget(self.label_19) self.checkBox_isocurve = QtGui.QCheckBox(self.layoutWidget) self.checkBox_isocurve.setText(_fromUtf8("")) self.checkBox_isocurve.setObjectName(_fromUtf8("checkBox_isocurve")) self.horizontalLayout_14.addWidget(self.checkBox_isocurve) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_14.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout_14) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.label_15 = QtGui.QLabel(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_15.sizePolicy().hasHeightForWidth()) self.label_15.setSizePolicy(sizePolicy) self.label_15.setObjectName(_fromUtf8("label_15")) self.horizontalLayout_5.addWidget(self.label_15) spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem4) self.label_16 = QtGui.QLabel(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_16.sizePolicy().hasHeightForWidth()) self.label_16.setSizePolicy(sizePolicy) self.label_16.setObjectName(_fromUtf8("label_16")) self.horizontalLayout_5.addWidget(self.label_16) self.spin_width = SpinBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_width.sizePolicy().hasHeightForWidth()) self.spin_width.setSizePolicy(sizePolicy) self.spin_width.setMaximumSize(QtCore.QSize(50, 15)) self.spin_width.setObjectName(_fromUtf8("spin_width")) self.horizontalLayout_5.addWidget(self.spin_width) self.verticalLayout.addLayout(self.horizontalLayout_5) self.gradient_isocurve = GradientWidget(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.gradient_isocurve.sizePolicy().hasHeightForWidth()) self.gradient_isocurve.setSizePolicy(sizePolicy) self.gradient_isocurve.setMaximumSize(QtCore.QSize(16777215, 40)) self.gradient_isocurve.setObjectName(_fromUtf8("gradient_isocurve")) self.verticalLayout.addWidget(self.gradient_isocurve) self.table_isocurve = QtGui.QTableWidget(self.layoutWidget) self.table_isocurve.setObjectName(_fromUtf8("table_isocurve")) self.table_isocurve.setColumnCount(4) self.table_isocurve.setRowCount(0) item = QtGui.QTableWidgetItem() self.table_isocurve.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_isocurve.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_isocurve.setHorizontalHeaderItem(2, item) item = QtGui.QTableWidgetItem() self.table_isocurve.setHorizontalHeaderItem(3, item) self.verticalLayout.addWidget(self.table_isocurve) self.btn_new_isocurve = QtGui.QPushButton(self.layoutWidget) self.btn_new_isocurve.setMaximumSize(QtCore.QSize(16777215, 25)) self.btn_new_isocurve.setObjectName(_fromUtf8("btn_new_isocurve")) self.verticalLayout.addWidget(self.btn_new_isocurve) self.splitter = QtGui.QSplitter(self.splitter_side_bar) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName(_fromUtf8("splitter")) self.plot = ImageView(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.plot.sizePolicy().hasHeightForWidth()) self.plot.setSizePolicy(sizePolicy) self.plot.setSizeIncrement(QtCore.QSize(0, 0)) self.plot.setObjectName(_fromUtf8("plot")) self.layoutWidget1 = QtGui.QWidget(self.splitter) self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget1) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.spin_x_min = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_x_min.sizePolicy().hasHeightForWidth()) self.spin_x_min.setSizePolicy(sizePolicy) self.spin_x_min.setMinimumSize(QtCore.QSize(0, 0)) self.spin_x_min.setMaximumSize(QtCore.QSize(80, 15)) self.spin_x_min.setBaseSize(QtCore.QSize(0, 0)) self.spin_x_min.setObjectName(_fromUtf8("spin_x_min")) self.horizontalLayout.addWidget(self.spin_x_min) self.spin_x_max = SpinBox(self.layoutWidget1) self.spin_x_max.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_x_max.sizePolicy().hasHeightForWidth()) self.spin_x_max.setSizePolicy(sizePolicy) self.spin_x_max.setMinimumSize(QtCore.QSize(0, 0)) self.spin_x_max.setMaximumSize(QtCore.QSize(80, 15)) self.spin_x_max.setBaseSize(QtCore.QSize(0, 0)) self.spin_x_max.setObjectName(_fromUtf8("spin_x_max")) self.horizontalLayout.addWidget(self.spin_x_max) self.spin_y_min = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_y_min.sizePolicy().hasHeightForWidth()) self.spin_y_min.setSizePolicy(sizePolicy) self.spin_y_min.setMinimumSize(QtCore.QSize(0, 0)) self.spin_y_min.setMaximumSize(QtCore.QSize(80, 15)) self.spin_y_min.setBaseSize(QtCore.QSize(0, 0)) self.spin_y_min.setObjectName(_fromUtf8("spin_y_min")) self.horizontalLayout.addWidget(self.spin_y_min) self.spin_y_max = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_y_max.sizePolicy().hasHeightForWidth()) self.spin_y_max.setSizePolicy(sizePolicy) self.spin_y_max.setMinimumSize(QtCore.QSize(0, 0)) self.spin_y_max.setMaximumSize(QtCore.QSize(80, 15)) self.spin_y_max.setBaseSize(QtCore.QSize(0, 0)) self.spin_y_max.setObjectName(_fromUtf8("spin_y_max")) self.horizontalLayout.addWidget(self.spin_y_max) self.spin_t = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_t.sizePolicy().hasHeightForWidth()) self.spin_t.setSizePolicy(sizePolicy) self.spin_t.setMaximumSize(QtCore.QSize(80, 15)) self.spin_t.setObjectName(_fromUtf8("spin_t")) self.horizontalLayout.addWidget(self.spin_t) self.spin_lvl_min = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_lvl_min.sizePolicy().hasHeightForWidth()) self.spin_lvl_min.setSizePolicy(sizePolicy) self.spin_lvl_min.setMaximumSize(QtCore.QSize(80, 15)) self.spin_lvl_min.setObjectName(_fromUtf8("spin_lvl_min")) self.horizontalLayout.addWidget(self.spin_lvl_min) self.spin_lvl_max = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_lvl_max.sizePolicy().hasHeightForWidth()) self.spin_lvl_max.setSizePolicy(sizePolicy) self.spin_lvl_max.setMaximumSize(QtCore.QSize(80, 15)) self.spin_lvl_max.setObjectName(_fromUtf8("spin_lvl_max")) self.horizontalLayout.addWidget(self.spin_lvl_max) self.verticalLayout_5.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_3 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setMinimumSize(QtCore.QSize(0, 0)) self.label_3.setMaximumSize(QtCore.QSize(40, 15)) self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_4.addWidget(self.label_3) self.label_4 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setMinimumSize(QtCore.QSize(0, 0)) self.label_4.setMaximumSize(QtCore.QSize(40, 15)) self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_4.addWidget(self.label_4) self.label = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(0, 0)) self.label.setMaximumSize(QtCore.QSize(40, 15)) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_4.addWidget(self.label) self.label_2 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setMinimumSize(QtCore.QSize(0, 0)) self.label_2.setMaximumSize(QtCore.QSize(40, 15)) self.label_2.setScaledContents(False) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_4.addWidget(self.label_2) self.label_7 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth()) self.label_7.setSizePolicy(sizePolicy) self.label_7.setMinimumSize(QtCore.QSize(0, 0)) self.label_7.setMaximumSize(QtCore.QSize(40, 15)) self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self.horizontalLayout_4.addWidget(self.label_7) self.label_8 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth()) self.label_8.setSizePolicy(sizePolicy) self.label_8.setMinimumSize(QtCore.QSize(0, 0)) self.label_8.setMaximumSize(QtCore.QSize(40, 15)) self.label_8.setAlignment(QtCore.Qt.AlignCenter) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_4.addWidget(self.label_8) self.label_9 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth()) self.label_9.setSizePolicy(sizePolicy) self.label_9.setMinimumSize(QtCore.QSize(0, 0)) self.label_9.setMaximumSize(QtCore.QSize(40, 15)) self.label_9.setAlignment(QtCore.Qt.AlignCenter) self.label_9.setObjectName(_fromUtf8("label_9")) self.horizontalLayout_4.addWidget(self.label_9) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.horizontalLayout_2.addLayout(self.verticalLayout_5) self.checkBox_lockRatio = QtGui.QCheckBox(self.layoutWidget1) self.checkBox_lockRatio.setMaximumSize(QtCore.QSize(80, 15)) self.checkBox_lockRatio.setObjectName(_fromUtf8("checkBox_lockRatio")) self.horizontalLayout_2.addWidget(self.checkBox_lockRatio) self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.btn_autoRange = QtGui.QPushButton(self.layoutWidget1) self.btn_autoRange.setMaximumSize(QtCore.QSize(100, 20)) self.btn_autoRange.setCheckable(True) self.btn_autoRange.setChecked(True) self.btn_autoRange.setObjectName(_fromUtf8("btn_autoRange")) self.verticalLayout_3.addWidget(self.btn_autoRange) self.btn_autoLvl = QtGui.QPushButton(self.layoutWidget1) self.btn_autoLvl.setMaximumSize(QtCore.QSize(100, 20)) self.btn_autoLvl.setCheckable(True) self.btn_autoLvl.setChecked(True) self.btn_autoLvl.setObjectName(_fromUtf8("btn_autoLvl")) self.verticalLayout_3.addWidget(self.btn_autoLvl) self.horizontalLayout_2.addLayout(self.verticalLayout_3) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.btnColor_background = ColorButton(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.btnColor_background.sizePolicy().hasHeightForWidth()) self.btnColor_background.setSizePolicy(sizePolicy) self.btnColor_background.setMaximumSize(QtCore.QSize(75, 25)) self.btnColor_background.setObjectName(_fromUtf8("btnColor_background")) self.verticalLayout_4.addWidget(self.btnColor_background) self.label_6 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth()) self.label_6.setSizePolicy(sizePolicy) self.label_6.setMaximumSize(QtCore.QSize(100, 15)) self.label_6.setAlignment(QtCore.Qt.AlignCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.verticalLayout_4.addWidget(self.label_6) self.horizontalLayout_2.addLayout(self.verticalLayout_4) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.btnColor_grid = ColorButton(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.btnColor_grid.sizePolicy().hasHeightForWidth()) self.btnColor_grid.setSizePolicy(sizePolicy) self.btnColor_grid.setMaximumSize(QtCore.QSize(75, 25)) self.btnColor_grid.setObjectName(_fromUtf8("btnColor_grid")) self.verticalLayout_2.addWidget(self.btnColor_grid) self.checkBox_showGrid = QtGui.QCheckBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.checkBox_showGrid.sizePolicy().hasHeightForWidth()) self.checkBox_showGrid.setSizePolicy(sizePolicy) self.checkBox_showGrid.setMaximumSize(QtCore.QSize(80, 15)) self.checkBox_showGrid.setObjectName(_fromUtf8("checkBox_showGrid")) self.verticalLayout_2.addWidget(self.checkBox_showGrid) self.horizontalLayout_2.addLayout(self.verticalLayout_2) self.verticalLayout_8 = QtGui.QVBoxLayout() self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) self.checkBox_x_slice = QtGui.QCheckBox(self.layoutWidget1) self.checkBox_x_slice.setMaximumSize(QtCore.QSize(80, 15)) self.checkBox_x_slice.setObjectName(_fromUtf8("checkBox_x_slice")) self.verticalLayout_8.addWidget(self.checkBox_x_slice) self.checkBox_y_slice = QtGui.QCheckBox(self.layoutWidget1) self.checkBox_y_slice.setMaximumSize(QtCore.QSize(80, 15)) self.checkBox_y_slice.setObjectName(_fromUtf8("checkBox_y_slice")) self.verticalLayout_8.addWidget(self.checkBox_y_slice) self.horizontalLayout_2.addLayout(self.verticalLayout_8) self.verticalLayout_6.addWidget(self.splitter_side_bar) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.tree_data.headerItem().setText(0, _translate("Form", "DataStreams", None)) self.label_17.setText(_translate("Form", "Images", None)) item = self.table_images.horizontalHeaderItem(0) item.setText(_translate("Form", "Name", None)) item = self.table_images.horizontalHeaderItem(1) item.setText(_translate("Form", "Update", None)) self.btn_newImage.setText(_translate("Form", "Create New Image", None)) self.label_18.setText(_translate("Form", "Image Data", None)) self.label_13.setText(_translate("Form", "From", None)) self.label_14.setText(_translate("Form", "plot", None)) self.label_5.setText(_translate("Form", "x", None)) self.label_10.setText(_translate("Form", "y", None)) self.label_11.setText(_translate("Form", "t", None)) self.label_12.setText(_translate("Form", "c", None)) item = self.table_slice.horizontalHeaderItem(0) item.setText(_translate("Form", "axis", None)) item = self.table_slice.horizontalHeaderItem(1) item.setText(_translate("Form", "Index", None)) item = self.table_slice.horizontalHeaderItem(2) item.setText(_translate("Form", "Value", None)) self.label_19.setText(_translate("Form", "Isocurves", None)) self.label_15.setText(_translate("Form", "Gradient", None)) self.label_16.setText(_translate("Form", "Width", None)) item = self.table_isocurve.horizontalHeaderItem(0) item.setText(_translate("Form", "Level", None)) item = self.table_isocurve.horizontalHeaderItem(1) item.setText(_translate("Form", "Color", None)) item = self.table_isocurve.horizontalHeaderItem(2) item.setText(_translate("Form", "Width", None)) self.btn_new_isocurve.setText(_translate("Form", "Create New Isocurve", None)) self.label_3.setText(_translate("Form", "x min", None)) self.label_4.setText(_translate("Form", "x max", None)) self.label.setText(_translate("Form", "y min", None)) self.label_2.setText(_translate("Form", "y max", None)) self.label_7.setText(_translate("Form", "t", None)) self.label_8.setText(_translate("Form", "Lvl Min", None)) self.label_9.setText(_translate("Form", "Lvl Max", None)) self.checkBox_lockRatio.setText(_translate("Form", "Lock Ratio", None)) self.btn_autoRange.setText(_translate("Form", "Auto Range", None)) self.btn_autoLvl.setText(_translate("Form", "Auto Levels", None)) self.label_6.setText(_translate("Form", "Background Color", None)) self.checkBox_showGrid.setText(_translate("Form", "Show Grid", None)) self.checkBox_x_slice.setText(_translate("Form", "X Slice", None)) self.checkBox_y_slice.setText(_translate("Form", "Y Slice", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(1316, 888) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth()) Form.setSizePolicy(sizePolicy) self.verticalLayout_7 = QtGui.QVBoxLayout(Form) self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.splitter_side_bar = QtGui.QSplitter(Form) self.splitter_side_bar.setOrientation(QtCore.Qt.Horizontal) self.splitter_side_bar.setObjectName(_fromUtf8("splitter_side_bar")) self.layoutWidget = QtGui.QWidget(self.splitter_side_bar) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.splitter_4 = QtGui.QSplitter(self.layoutWidget) self.splitter_4.setOrientation(QtCore.Qt.Vertical) self.splitter_4.setObjectName(_fromUtf8("splitter_4")) self.tree_data = QtGui.QTreeWidget(self.splitter_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tree_data.sizePolicy().hasHeightForWidth()) self.tree_data.setSizePolicy(sizePolicy) self.tree_data.setColumnCount(2) self.tree_data.setObjectName(_fromUtf8("tree_data")) self.verticalLayout.addWidget(self.splitter_4) self.horizontalLayout_12 = QtGui.QHBoxLayout() self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12")) self.label_17 = QtGui.QLabel(self.layoutWidget) self.label_17.setMaximumSize(QtCore.QSize(60, 25)) font = QtGui.QFont() font.setPointSize(13) font.setItalic(False) font.setUnderline(False) font.setStrikeOut(False) self.label_17.setFont(font) self.label_17.setTextFormat(QtCore.Qt.RichText) self.label_17.setScaledContents(True) self.label_17.setObjectName(_fromUtf8("label_17")) self.horizontalLayout_12.addWidget(self.label_17) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_12.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout_12) self.table_traces = QtGui.QTableWidget(self.layoutWidget) self.table_traces.setObjectName(_fromUtf8("table_traces")) self.table_traces.setColumnCount(5) self.table_traces.setRowCount(0) item = QtGui.QTableWidgetItem() self.table_traces.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_traces.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_traces.setHorizontalHeaderItem(2, item) item = QtGui.QTableWidgetItem() self.table_traces.setHorizontalHeaderItem(3, item) item = QtGui.QTableWidgetItem() self.table_traces.setHorizontalHeaderItem(4, item) self.verticalLayout.addWidget(self.table_traces) self.btn_newTrace = QtGui.QPushButton(self.layoutWidget) self.btn_newTrace.setObjectName(_fromUtf8("btn_newTrace")) self.verticalLayout.addWidget(self.btn_newTrace) self.horizontalLayout_13 = QtGui.QHBoxLayout() self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) self.label_18 = QtGui.QLabel(self.layoutWidget) self.label_18.setMaximumSize(QtCore.QSize(100, 25)) font = QtGui.QFont() font.setPointSize(13) font.setItalic(False) font.setUnderline(False) font.setStrikeOut(False) self.label_18.setFont(font) self.label_18.setTextFormat(QtCore.Qt.RichText) self.label_18.setScaledContents(True) self.label_18.setObjectName(_fromUtf8("label_18")) self.horizontalLayout_13.addWidget(self.label_18) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_13.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_13) self.horizontalLayout_9 = QtGui.QHBoxLayout() self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.label_13 = QtGui.QLabel(self.layoutWidget) self.label_13.setMaximumSize(QtCore.QSize(25, 30)) self.label_13.setObjectName(_fromUtf8("label_13")) self.horizontalLayout_9.addWidget(self.label_13) self.combo_selectSource = QtGui.QComboBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.combo_selectSource.sizePolicy().hasHeightForWidth()) self.combo_selectSource.setSizePolicy(sizePolicy) self.combo_selectSource.setMaximumSize(QtCore.QSize(150, 20)) self.combo_selectSource.setObjectName(_fromUtf8("combo_selectSource")) self.horizontalLayout_9.addWidget(self.combo_selectSource) self.label_14 = QtGui.QLabel(self.layoutWidget) self.label_14.setMaximumSize(QtCore.QSize(20, 30)) self.label_14.setObjectName(_fromUtf8("label_14")) self.horizontalLayout_9.addWidget(self.label_14) self.combo_select_val = QtGui.QComboBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.combo_select_val.sizePolicy().hasHeightForWidth()) self.combo_select_val.setSizePolicy(sizePolicy) self.combo_select_val.setMaximumSize(QtCore.QSize(150, 20)) self.combo_select_val.setObjectName(_fromUtf8("combo_select_val")) self.horizontalLayout_9.addWidget(self.combo_select_val) self.label_15 = QtGui.QLabel(self.layoutWidget) self.label_15.setMaximumSize(QtCore.QSize(15, 30)) self.label_15.setObjectName(_fromUtf8("label_15")) self.horizontalLayout_9.addWidget(self.label_15) self.combo_select_arg = QtGui.QComboBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.combo_select_arg.sizePolicy().hasHeightForWidth()) self.combo_select_arg.setSizePolicy(sizePolicy) self.combo_select_arg.setMaximumSize(QtCore.QSize(150, 20)) self.combo_select_arg.setObjectName(_fromUtf8("combo_select_arg")) self.horizontalLayout_9.addWidget(self.combo_select_arg) spacerItem2 = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_9.addItem(spacerItem2) self.verticalLayout.addLayout(self.horizontalLayout_9) self.table_slice = QtGui.QTableWidget(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.table_slice.sizePolicy().hasHeightForWidth()) self.table_slice.setSizePolicy(sizePolicy) self.table_slice.setObjectName(_fromUtf8("table_slice")) self.table_slice.setColumnCount(3) self.table_slice.setRowCount(0) item = QtGui.QTableWidgetItem() self.table_slice.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_slice.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_slice.setHorizontalHeaderItem(2, item) self.verticalLayout.addWidget(self.table_slice) self.horizontalLayout_11 = QtGui.QHBoxLayout() self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11")) self.label_16 = QtGui.QLabel(self.layoutWidget) self.label_16.setMaximumSize(QtCore.QSize(150, 25)) font = QtGui.QFont() font.setPointSize(13) font.setItalic(False) font.setUnderline(False) font.setStrikeOut(False) self.label_16.setFont(font) self.label_16.setTextFormat(QtCore.Qt.RichText) self.label_16.setScaledContents(True) self.label_16.setObjectName(_fromUtf8("label_16")) self.horizontalLayout_11.addWidget(self.label_16) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout_11) self.horizontalLayout_10 = QtGui.QHBoxLayout() self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) self.checkBox_points = QtGui.QCheckBox(self.layoutWidget) self.checkBox_points.setMaximumSize(QtCore.QSize(16777215, 20)) self.checkBox_points.setObjectName(_fromUtf8("checkBox_points")) self.horizontalLayout_10.addWidget(self.checkBox_points) self.checkBox_curve = QtGui.QCheckBox(self.layoutWidget) self.checkBox_curve.setMaximumSize(QtCore.QSize(16777215, 20)) self.checkBox_curve.setObjectName(_fromUtf8("checkBox_curve")) self.horizontalLayout_10.addWidget(self.checkBox_curve) self.checkBox_fill = QtGui.QCheckBox(self.layoutWidget) self.checkBox_fill.setMaximumSize(QtCore.QSize(16777215, 20)) self.checkBox_fill.setObjectName(_fromUtf8("checkBox_fill")) self.horizontalLayout_10.addWidget(self.checkBox_fill) spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_10.addItem(spacerItem4) self.verticalLayout.addLayout(self.horizontalLayout_10) self.table_appearance = QtGui.QTableWidget(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.table_appearance.sizePolicy().hasHeightForWidth()) self.table_appearance.setSizePolicy(sizePolicy) self.table_appearance.setShowGrid(True) self.table_appearance.setCornerButtonEnabled(True) self.table_appearance.setObjectName(_fromUtf8("table_appearance")) self.table_appearance.setColumnCount(2) self.table_appearance.setRowCount(6) item = QtGui.QTableWidgetItem() self.table_appearance.setVerticalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_appearance.setVerticalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_appearance.setVerticalHeaderItem(2, item) item = QtGui.QTableWidgetItem() self.table_appearance.setVerticalHeaderItem(3, item) item = QtGui.QTableWidgetItem() self.table_appearance.setVerticalHeaderItem(4, item) item = QtGui.QTableWidgetItem() self.table_appearance.setVerticalHeaderItem(5, item) item = QtGui.QTableWidgetItem() self.table_appearance.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_appearance.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_appearance.setItem(0, 0, item) item = QtGui.QTableWidgetItem() self.table_appearance.setItem(2, 0, item) self.table_appearance.horizontalHeader().setVisible(False) self.verticalLayout.addWidget(self.table_appearance) self.splitter = QtGui.QSplitter(self.splitter_side_bar) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName(_fromUtf8("splitter")) self.plot = PlotWidget(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.plot.sizePolicy().hasHeightForWidth()) self.plot.setSizePolicy(sizePolicy) self.plot.setSizeIncrement(QtCore.QSize(0, 0)) self.plot.setObjectName(_fromUtf8("plot")) self.layoutWidget1 = QtGui.QWidget(self.splitter) self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget1) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.spin_x_min = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_x_min.sizePolicy().hasHeightForWidth()) self.spin_x_min.setSizePolicy(sizePolicy) self.spin_x_min.setMinimumSize(QtCore.QSize(0, 0)) self.spin_x_min.setMaximumSize(QtCore.QSize(80, 15)) self.spin_x_min.setBaseSize(QtCore.QSize(30, 15)) self.spin_x_min.setObjectName(_fromUtf8("spin_x_min")) self.horizontalLayout.addWidget(self.spin_x_min) self.spin_x_max = SpinBox(self.layoutWidget1) self.spin_x_max.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_x_max.sizePolicy().hasHeightForWidth()) self.spin_x_max.setSizePolicy(sizePolicy) self.spin_x_max.setMinimumSize(QtCore.QSize(0, 0)) self.spin_x_max.setMaximumSize(QtCore.QSize(80, 15)) self.spin_x_max.setBaseSize(QtCore.QSize(30, 15)) self.spin_x_max.setObjectName(_fromUtf8("spin_x_max")) self.horizontalLayout.addWidget(self.spin_x_max) self.spin_y_min = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_y_min.sizePolicy().hasHeightForWidth()) self.spin_y_min.setSizePolicy(sizePolicy) self.spin_y_min.setMinimumSize(QtCore.QSize(0, 0)) self.spin_y_min.setMaximumSize(QtCore.QSize(80, 15)) self.spin_y_min.setBaseSize(QtCore.QSize(30, 15)) self.spin_y_min.setObjectName(_fromUtf8("spin_y_min")) self.horizontalLayout.addWidget(self.spin_y_min) self.spin_y_max = SpinBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spin_y_max.sizePolicy().hasHeightForWidth()) self.spin_y_max.setSizePolicy(sizePolicy) self.spin_y_max.setMinimumSize(QtCore.QSize(0, 0)) self.spin_y_max.setMaximumSize(QtCore.QSize(80, 15)) self.spin_y_max.setBaseSize(QtCore.QSize(30, 15)) self.spin_y_max.setObjectName(_fromUtf8("spin_y_max")) self.horizontalLayout.addWidget(self.spin_y_max) self.verticalLayout_5.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_3 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setMinimumSize(QtCore.QSize(5, 10)) self.label_3.setMaximumSize(QtCore.QSize(40, 15)) self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_4.addWidget(self.label_3) self.label_4 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setMinimumSize(QtCore.QSize(5, 10)) self.label_4.setMaximumSize(QtCore.QSize(40, 15)) self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_4.addWidget(self.label_4) self.label = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(5, 10)) self.label.setMaximumSize(QtCore.QSize(40, 15)) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_4.addWidget(self.label) self.label_2 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setMinimumSize(QtCore.QSize(5, 10)) self.label_2.setMaximumSize(QtCore.QSize(40, 15)) self.label_2.setScaledContents(False) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_4.addWidget(self.label_2) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.horizontalLayout_2.addLayout(self.verticalLayout_5) self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.btn_autoScaleX = QtGui.QPushButton(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.btn_autoScaleX.sizePolicy().hasHeightForWidth()) self.btn_autoScaleX.setSizePolicy(sizePolicy) self.btn_autoScaleX.setMaximumSize(QtCore.QSize(75, 25)) self.btn_autoScaleX.setCheckable(True) self.btn_autoScaleX.setChecked(True) self.btn_autoScaleX.setObjectName(_fromUtf8("btn_autoScaleX")) self.verticalLayout_3.addWidget(self.btn_autoScaleX) self.btn_autoScaleY = QtGui.QPushButton(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.btn_autoScaleY.sizePolicy().hasHeightForWidth()) self.btn_autoScaleY.setSizePolicy(sizePolicy) self.btn_autoScaleY.setMaximumSize(QtCore.QSize(75, 25)) self.btn_autoScaleY.setCheckable(True) self.btn_autoScaleY.setChecked(True) self.btn_autoScaleY.setObjectName(_fromUtf8("btn_autoScaleY")) self.verticalLayout_3.addWidget(self.btn_autoScaleY) self.horizontalLayout_2.addLayout(self.verticalLayout_3) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.btnColor_background = ColorButton(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.btnColor_background.sizePolicy().hasHeightForWidth()) self.btnColor_background.setSizePolicy(sizePolicy) self.btnColor_background.setMaximumSize(QtCore.QSize(75, 20)) self.btnColor_background.setObjectName(_fromUtf8("btnColor_background")) self.verticalLayout_4.addWidget(self.btnColor_background) self.label_6 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth()) self.label_6.setSizePolicy(sizePolicy) self.label_6.setMaximumSize(QtCore.QSize(100, 15)) self.label_6.setAlignment(QtCore.Qt.AlignCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.verticalLayout_4.addWidget(self.label_6) self.horizontalLayout_2.addLayout(self.verticalLayout_4) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.btnColor_grid = ColorButton(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.btnColor_grid.sizePolicy().hasHeightForWidth()) self.btnColor_grid.setSizePolicy(sizePolicy) self.btnColor_grid.setMaximumSize(QtCore.QSize(75, 20)) self.btnColor_grid.setObjectName(_fromUtf8("btnColor_grid")) self.verticalLayout_2.addWidget(self.btnColor_grid) self.label_5 = QtGui.QLabel(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setMaximumSize(QtCore.QSize(75, 15)) self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setObjectName(_fromUtf8("label_5")) self.verticalLayout_2.addWidget(self.label_5) self.horizontalLayout_2.addLayout(self.verticalLayout_2) self.verticalLayout_8 = QtGui.QVBoxLayout() self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) self.checkBox_logX = QtGui.QCheckBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.checkBox_logX.sizePolicy().hasHeightForWidth()) self.checkBox_logX.setSizePolicy(sizePolicy) self.checkBox_logX.setMaximumSize(QtCore.QSize(16777215, 15)) self.checkBox_logX.setObjectName(_fromUtf8("checkBox_logX")) self.verticalLayout_8.addWidget(self.checkBox_logX) self.checkBox_logY = QtGui.QCheckBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.checkBox_logY.sizePolicy().hasHeightForWidth()) self.checkBox_logY.setSizePolicy(sizePolicy) self.checkBox_logY.setMaximumSize(QtCore.QSize(16777215, 15)) self.checkBox_logY.setObjectName(_fromUtf8("checkBox_logY")) self.verticalLayout_8.addWidget(self.checkBox_logY) self.horizontalLayout_2.addLayout(self.verticalLayout_8) self.verticalLayout_6 = QtGui.QVBoxLayout() self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.checkBox_showGrid = QtGui.QCheckBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.checkBox_showGrid.sizePolicy().hasHeightForWidth()) self.checkBox_showGrid.setSizePolicy(sizePolicy) self.checkBox_showGrid.setMaximumSize(QtCore.QSize(16777215, 15)) self.checkBox_showGrid.setObjectName(_fromUtf8("checkBox_showGrid")) self.verticalLayout_6.addWidget(self.checkBox_showGrid) self.checkBox_showLegend = QtGui.QCheckBox(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.checkBox_showLegend.sizePolicy().hasHeightForWidth()) self.checkBox_showLegend.setSizePolicy(sizePolicy) self.checkBox_showLegend.setMaximumSize(QtCore.QSize(16777215, 15)) self.checkBox_showLegend.setObjectName(_fromUtf8("checkBox_showLegend")) self.verticalLayout_6.addWidget(self.checkBox_showLegend) self.horizontalLayout_2.addLayout(self.verticalLayout_6) self.checkBox_lockRatio = QtGui.QCheckBox(self.layoutWidget1) self.checkBox_lockRatio.setMaximumSize(QtCore.QSize(16777215, 20)) self.checkBox_lockRatio.setObjectName(_fromUtf8("checkBox_lockRatio")) self.horizontalLayout_2.addWidget(self.checkBox_lockRatio) spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem6) self.verticalLayout_7.addWidget(self.splitter_side_bar) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.tree_data.headerItem().setText(0, _translate("Form", "DataStreams", None)) self.label_17.setText(_translate("Form", "Traces", None)) item = self.table_traces.horizontalHeaderItem(0) item.setText(_translate("Form", "Name", None)) item = self.table_traces.horizontalHeaderItem(1) item.setText(_translate("Form", "Show", None)) item = self.table_traces.horizontalHeaderItem(2) item.setText(_translate("Form", "Update", None)) item = self.table_traces.horizontalHeaderItem(3) item.setText(_translate("Form", "Appearance", None)) self.btn_newTrace.setText(_translate("Form", "Create New Trace", None)) self.label_18.setText(_translate("Form", "Trace Data", None)) self.label_13.setText(_translate("Form", "From", None)) self.label_14.setText(_translate("Form", "plot", None)) self.label_15.setText(_translate("Form", "vs", None)) item = self.table_slice.horizontalHeaderItem(0) item.setText(_translate("Form", "Axis", None)) item = self.table_slice.horizontalHeaderItem(1) item.setText(_translate("Form", "Index", None)) item = self.table_slice.horizontalHeaderItem(2) item.setText(_translate("Form", "Value", None)) self.label_16.setText(_translate("Form", "Trace Appearance ", None)) self.checkBox_points.setText(_translate("Form", "Points", None)) self.checkBox_curve.setText(_translate("Form", "Curve", None)) self.checkBox_fill.setText(_translate("Form", "Fill", None)) item = self.table_appearance.verticalHeaderItem(0) item.setText(_translate("Form", "Point Pen", None)) item = self.table_appearance.verticalHeaderItem(1) item.setText(_translate("Form", "Point Outline", None)) item = self.table_appearance.verticalHeaderItem(2) item.setText(_translate("Form", "Point Style", None)) item = self.table_appearance.verticalHeaderItem(3) item.setText(_translate("Form", "Curve Pen", None)) item = self.table_appearance.verticalHeaderItem(4) item.setText(_translate("Form", "Curve Shadow", None)) item = self.table_appearance.verticalHeaderItem(5) item.setText(_translate("Form", "Fill", None)) __sortingEnabled = self.table_appearance.isSortingEnabled() self.table_appearance.setSortingEnabled(False) self.table_appearance.setSortingEnabled(__sortingEnabled) self.label_3.setText(_translate("Form", "x min", None)) self.label_4.setText(_translate("Form", "x max", None)) self.label.setText(_translate("Form", "y min", None)) self.label_2.setText(_translate("Form", "y max", None)) self.btn_autoScaleX.setText(_translate("Form", "Auto Scale X", None)) self.btn_autoScaleY.setText(_translate("Form", "Auto Scale Y", None)) self.label_6.setText(_translate("Form", "Background Color", None)) self.label_5.setText(_translate("Form", "Grid Color", None)) self.checkBox_logX.setText(_translate("Form", "Log X", None)) self.checkBox_logY.setText(_translate("Form", "Log Y", None)) self.checkBox_showGrid.setText(_translate("Form", "Show Grid", None)) self.checkBox_showLegend.setText(_translate("Form", "Show Legend", None)) self.checkBox_lockRatio.setText(_translate("Form", "Lock Ratio", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(770, 590) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) MainWindow.setMinimumSize(QtCore.QSize(500, 500)) self.centralwidget = QtGui.QWidget(MainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth()) self.centralwidget.setSizePolicy(sizePolicy) self.centralwidget.setMaximumSize(QtCore.QSize(3000, 3000)) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.graphicsView = PlotWidget(self.centralwidget) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.gridLayout.addWidget(self.graphicsView, 0, 0, 1, 2) self.groupBox = QtGui.QGroupBox(self.centralwidget) self.groupBox.setMinimumSize(QtCore.QSize(0, 200)) self.groupBox.setFlat(False) self.groupBox.setCheckable(False) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.formLayout = QtGui.QFormLayout() self.formLayout.setSizeConstraint(QtGui.QLayout.SetMinAndMaxSize) self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.FieldsStayAtSizeHint) self.formLayout.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.formLayout.setSpacing(30) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.label = QtGui.QLabel(self.groupBox) self.label.setScaledContents(False) self.label.setObjectName(_fromUtf8("label")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label) self.spinBox = SpinBox(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spinBox.sizePolicy().hasHeightForWidth()) self.spinBox.setSizePolicy(sizePolicy) self.spinBox.setMinimumSize(QtCore.QSize(100, 0)) self.spinBox.setProperty("value", 10) self.spinBox.setObjectName(_fromUtf8("spinBox")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.spinBox) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3) self.lcdNumber = QtGui.QLCDNumber(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lcdNumber.sizePolicy().hasHeightForWidth()) self.lcdNumber.setSizePolicy(sizePolicy) self.lcdNumber.setMinimumSize(QtCore.QSize(100, 0)) self.lcdNumber.setSmallDecimalPoint(True) self.lcdNumber.setNumDigits(4) self.lcdNumber.setDigitCount(4) self.lcdNumber.setSegmentStyle(QtGui.QLCDNumber.Flat) self.lcdNumber.setProperty("value", 25.0) self.lcdNumber.setObjectName(_fromUtf8("lcdNumber")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.lcdNumber) self.persistenceBox = QtGui.QSpinBox(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.persistenceBox.sizePolicy().hasHeightForWidth()) self.persistenceBox.setSizePolicy(sizePolicy) self.persistenceBox.setMinimumSize(QtCore.QSize(100, 0)) self.persistenceBox.setMinimum(1) self.persistenceBox.setMaximum(10) self.persistenceBox.setObjectName(_fromUtf8("persistenceBox")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.persistenceBox) self.label_4 = QtGui.QLabel(self.groupBox) self.label_4.setObjectName(_fromUtf8("label_4")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_2) self.wavelength_label = QtGui.QLabel(self.groupBox) self.wavelength_label.setObjectName(_fromUtf8("wavelength_label")) self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.wavelength_label) self.horizontalLayout.addLayout(self.formLayout) self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 1) self.frame = QtGui.QFrame(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setFrameShape(QtGui.QFrame.NoFrame) self.frame.setFrameShadow(QtGui.QFrame.Plain) self.frame.setObjectName(_fromUtf8("frame")) self.gridLayout.addWidget(self.frame, 1, 1, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 770, 22)) self.menubar.setObjectName(_fromUtf8("menubar")) MainWindow.setMenuBar(self.menubar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "USB4000 GUI", None)) self.groupBox.setTitle(_translate("MainWindow", "Settings", None)) self.label.setText(_translate("MainWindow", "Integration time", None)) self.label_3.setText(_translate("MainWindow", "Temperature", None)) self.label_4.setText(_translate("MainWindow", "Persistence", None)) self.label_2.setText(_translate("MainWindow", "Wavelength", None)) self.wavelength_label.setText(_translate("MainWindow", "0 nm", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(770, 590) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) MainWindow.setMinimumSize(QtCore.QSize(500, 500)) self.centralwidget = QtGui.QWidget(MainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.centralwidget.sizePolicy().hasHeightForWidth()) self.centralwidget.setSizePolicy(sizePolicy) self.centralwidget.setMaximumSize(QtCore.QSize(3000, 3000)) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.graphicsView = PlotWidget(self.centralwidget) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.gridLayout.addWidget(self.graphicsView, 0, 0, 1, 2) self.groupBox = QtGui.QGroupBox(self.centralwidget) self.groupBox.setMinimumSize(QtCore.QSize(0, 200)) self.groupBox.setFlat(False) self.groupBox.setCheckable(False) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.formLayout = QtGui.QFormLayout() self.formLayout.setSizeConstraint(QtGui.QLayout.SetMinAndMaxSize) self.formLayout.setFieldGrowthPolicy( QtGui.QFormLayout.FieldsStayAtSizeHint) self.formLayout.setLabelAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.formLayout.setSpacing(30) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.label = QtGui.QLabel(self.groupBox) self.label.setScaledContents(False) self.label.setObjectName(_fromUtf8("label")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label) self.spinBox = SpinBox(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.spinBox.sizePolicy().hasHeightForWidth()) self.spinBox.setSizePolicy(sizePolicy) self.spinBox.setMinimumSize(QtCore.QSize(100, 0)) self.spinBox.setProperty("value", 10) self.spinBox.setObjectName(_fromUtf8("spinBox")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.spinBox) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3) self.lcdNumber = QtGui.QLCDNumber(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lcdNumber.sizePolicy().hasHeightForWidth()) self.lcdNumber.setSizePolicy(sizePolicy) self.lcdNumber.setMinimumSize(QtCore.QSize(100, 0)) self.lcdNumber.setSmallDecimalPoint(True) self.lcdNumber.setNumDigits(4) self.lcdNumber.setDigitCount(4) self.lcdNumber.setSegmentStyle(QtGui.QLCDNumber.Flat) self.lcdNumber.setProperty("value", 25.0) self.lcdNumber.setObjectName(_fromUtf8("lcdNumber")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.lcdNumber) self.persistenceBox = QtGui.QSpinBox(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.persistenceBox.sizePolicy().hasHeightForWidth()) self.persistenceBox.setSizePolicy(sizePolicy) self.persistenceBox.setMinimumSize(QtCore.QSize(100, 0)) self.persistenceBox.setMinimum(1) self.persistenceBox.setMaximum(10) self.persistenceBox.setObjectName(_fromUtf8("persistenceBox")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.persistenceBox) self.label_4 = QtGui.QLabel(self.groupBox) self.label_4.setObjectName(_fromUtf8("label_4")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_2) self.wavelength_label = QtGui.QLabel(self.groupBox) self.wavelength_label.setObjectName(_fromUtf8("wavelength_label")) self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.wavelength_label) self.horizontalLayout.addLayout(self.formLayout) self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 1) self.frame = QtGui.QFrame(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setFrameShape(QtGui.QFrame.NoFrame) self.frame.setFrameShadow(QtGui.QFrame.Plain) self.frame.setObjectName(_fromUtf8("frame")) self.gridLayout.addWidget(self.frame, 1, 1, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 770, 22)) self.menubar.setObjectName(_fromUtf8("menubar")) MainWindow.setMenuBar(self.menubar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "USB4000 GUI", None)) self.groupBox.setTitle(_translate("MainWindow", "Settings", None)) self.label.setText(_translate("MainWindow", "Integration time", None)) self.label_3.setText(_translate("MainWindow", "Temperature", None)) self.label_4.setText(_translate("MainWindow", "Persistence", None)) self.label_2.setText(_translate("MainWindow", "Wavelength", None)) self.wavelength_label.setText(_translate("MainWindow", "0 nm", None))