ifdata[p] = ifd.getArrayData() if i==0: headers = ifdata[p].keys() shortheaders = [hj.replace(' > ','>').replace(' ','_') for hj in headers] pfmt[p] = {'color': colors[i], 'marker': None, 'linestyle': '-', 'label':p} ifd.clrArrayData() # Plot relevant data for j in xrange(0,len(headers)): hj = headers[j] hs = shortheaders[j] if hs!='time': plt.figure(1) fig = plt.gcf() cp = CustomPlot(fig) h = cp.splot(ifdata,'time',hj,pfmt) fig = cp.getfig() plt.legend(handles=h,bbox_to_anchor=(1.0,0.7),bbox_transform=plt.gcf().transFigure,prop={'size':10}) plt.xlabel('time (s)') if hj.find('mass')!=-1: yl = hj + ' ($M_\\odot$)' else: yl = hj plt.ylabel(yl) plt.title(hj + ' For ignMpoleA=' + impa + 'e5, pbIgnRho=10^7.2') plt.savefig(hs + '_mp-2' + suff.rstrip('_ordered.dat') + '.eps') plt.clf()
os.chdir(this_dir) plot_order = co_r_keys + cone_r_keys + ['co_mean','cone_mean'] ifdata_po = OrderedDict((k,ifdata[k]) for k in plot_order) pfmt_po = OrderedDict((k,pfmt[k]) for k in plot_order) # Plot relevant data for j in xrange(0,len(headers)): hj = headers[j] hs = shortheaders[j] if hs!='time': print 'plotting: hj=' + str(hj) plt.figure(1) fig = plt.gcf() cp = CustomPlot(fig) h = cp.splot(ifdata_po,'time',hj,pfmt_po) fig = cp.getfig() handles_rzs = mlines.Line2D([],[],color='blue',alpha=0.75, linestyle='-',linewidth=2.0, label='CO WD Realizations') handles_rzm = mlines.Line2D([],[],color='orange',linestyle='-',linewidth=2.0, label='CO WD Mean Values') handles_cones = mlines.Line2D([],[],color='green',alpha=0.75, linestyle='-',linewidth=2.0, label='CONe WD Realizations') handles_conem = mlines.Line2D([],[],color='red',linestyle='-',linewidth=2.0, label='CONe WD Mean Values') h = [handles_rzs,handles_rzm,handles_cones,handles_conem] loc_legend_plots = {'E_internal':1,
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1655, 1040) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout_28 = QtWidgets.QVBoxLayout(self.centralwidget) self.verticalLayout_28.setObjectName("verticalLayout_28") self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.verticalLayout_18 = QtWidgets.QVBoxLayout(self.tab) self.verticalLayout_18.setObjectName("verticalLayout_18") self.widget = QtWidgets.QWidget(self.tab) self.widget.setObjectName("widget") self.verticalLayout_34 = QtWidgets.QVBoxLayout(self.widget) self.verticalLayout_34.setObjectName("verticalLayout_34") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.groupBox_5 = QtWidgets.QGroupBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_5.sizePolicy().hasHeightForWidth()) self.groupBox_5.setSizePolicy(sizePolicy) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout.setObjectName("gridLayout") self.groupBox_4 = QtWidgets.QGroupBox(self.groupBox_5) self.groupBox_4.setObjectName("groupBox_4") self.verticalLayout_17 = QtWidgets.QVBoxLayout(self.groupBox_4) self.verticalLayout_17.setObjectName("verticalLayout_17") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.verticalLayout_16 = QtWidgets.QVBoxLayout() self.verticalLayout_16.setObjectName("verticalLayout_16") self.mku_bdd_on_button = QtWidgets.QPushButton(self.groupBox_4) self.mku_bdd_on_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_bdd_on_button.setObjectName("mku_bdd_on_button") self.verticalLayout_16.addWidget(self.mku_bdd_on_button) self.mku_bdd_off_button = QtWidgets.QPushButton(self.groupBox_4) self.mku_bdd_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_bdd_off_button.setObjectName("mku_bdd_off_button") self.verticalLayout_16.addWidget(self.mku_bdd_off_button) self.horizontalLayout_9.addLayout(self.verticalLayout_16) self.verticalLayout_15 = QtWidgets.QVBoxLayout() self.verticalLayout_15.setObjectName("verticalLayout_15") self.mku_tk_on_button = QtWidgets.QPushButton(self.groupBox_4) self.mku_tk_on_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_tk_on_button.setObjectName("mku_tk_on_button") self.verticalLayout_15.addWidget(self.mku_tk_on_button) self.mku_tk_off_button = QtWidgets.QPushButton(self.groupBox_4) self.mku_tk_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_tk_off_button.setObjectName("mku_tk_off_button") self.verticalLayout_15.addWidget(self.mku_tk_off_button) self.horizontalLayout_9.addLayout(self.verticalLayout_15) self.verticalLayout_17.addLayout(self.horizontalLayout_9) self.gridLayout.addWidget(self.groupBox_4, 0, 1, 1, 1) self.groupBox_3 = QtWidgets.QGroupBox(self.groupBox_5) self.groupBox_3.setObjectName("groupBox_3") self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.groupBox_3) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.verticalLayout_14 = QtWidgets.QVBoxLayout() self.verticalLayout_14.setObjectName("verticalLayout_14") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.mku_on1_button = QtWidgets.QPushButton(self.groupBox_3) self.mku_on1_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_on1_button.setObjectName("mku_on1_button") self.horizontalLayout_7.addWidget(self.mku_on1_button) self.mku_on2_button = QtWidgets.QPushButton(self.groupBox_3) self.mku_on2_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_on2_button.setObjectName("mku_on2_button") self.horizontalLayout_7.addWidget(self.mku_on2_button) self.verticalLayout_14.addLayout(self.horizontalLayout_7) self.mku_off_button = QtWidgets.QPushButton(self.groupBox_3) self.mku_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_off_button.setObjectName("mku_off_button") self.verticalLayout_14.addWidget(self.mku_off_button) self.horizontalLayout_8.addLayout(self.verticalLayout_14) self.gridLayout.addWidget(self.groupBox_3, 0, 0, 1, 1) self.mku_duration_line_edit = QtWidgets.QSpinBox(self.groupBox_5) self.mku_duration_line_edit.setMinimumSize(QtCore.QSize(0, 20)) self.mku_duration_line_edit.setMaximum(999) self.mku_duration_line_edit.setProperty("value", 100) self.mku_duration_line_edit.setObjectName("mku_duration_line_edit") self.gridLayout.addWidget(self.mku_duration_line_edit, 1, 1, 1, 1) self.mku_duration_button = QtWidgets.QPushButton(self.groupBox_5) self.mku_duration_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_duration_button.setObjectName("mku_duration_button") self.gridLayout.addWidget(self.mku_duration_button, 1, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox_5) self.groupBox_2 = QtWidgets.QGroupBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setMinimumSize(QtCore.QSize(0, 0)) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_6.setObjectName("verticalLayout_6") self.verticalLayout_9 = QtWidgets.QVBoxLayout() self.verticalLayout_9.setObjectName("verticalLayout_9") self.line = QtWidgets.QFrame(self.groupBox_2) self.line.setFrameShape(QtWidgets.QFrame.VLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_9.addWidget(self.line) self.verticalLayout_6.addLayout(self.verticalLayout_9) self.groupBox_10 = QtWidgets.QGroupBox(self.groupBox_2) self.groupBox_10.setObjectName("groupBox_10") self.verticalLayout_19 = QtWidgets.QVBoxLayout(self.groupBox_10) self.verticalLayout_19.setObjectName("verticalLayout_19") self.gridLayout_6 = QtWidgets.QGridLayout() self.gridLayout_6.setObjectName("gridLayout_6") self.label_12 = QtWidgets.QLabel(self.groupBox_10) self.label_12.setObjectName("label_12") self.gridLayout_6.addWidget(self.label_12, 5, 0, 1, 1) self.bdd_set_voltage_button = QtWidgets.QPushButton(self.groupBox_10) self.bdd_set_voltage_button.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_set_voltage_button.setObjectName("bdd_set_voltage_button") self.gridLayout_6.addWidget(self.bdd_set_voltage_button, 7, 0, 1, 1) self.bdd_on_button = QtWidgets.QPushButton(self.groupBox_10) self.bdd_on_button.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_on_button.setObjectName("bdd_on_button") self.gridLayout_6.addWidget(self.bdd_on_button, 0, 0, 1, 1) self.bdd_voltage_label = QtWidgets.QDoubleSpinBox(self.groupBox_10) self.bdd_voltage_label.setEnabled(True) self.bdd_voltage_label.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_voltage_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.bdd_voltage_label.setFrame(True) self.bdd_voltage_label.setAlignment(QtCore.Qt.AlignCenter) self.bdd_voltage_label.setReadOnly(True) self.bdd_voltage_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.bdd_voltage_label.setKeyboardTracking(True) self.bdd_voltage_label.setObjectName("bdd_voltage_label") self.gridLayout_6.addWidget(self.bdd_voltage_label, 3, 1, 1, 1) self.bdd_off_button = QtWidgets.QPushButton(self.groupBox_10) self.bdd_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_off_button.setObjectName("bdd_off_button") self.gridLayout_6.addWidget(self.bdd_off_button, 0, 1, 1, 1) self.label_11 = QtWidgets.QLabel(self.groupBox_10) self.label_11.setObjectName("label_11") self.gridLayout_6.addWidget(self.label_11, 4, 0, 1, 1) self.bdd_set_voltage_line_edit = QtWidgets.QDoubleSpinBox( self.groupBox_10) self.bdd_set_voltage_line_edit.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_set_voltage_line_edit.setObjectName( "bdd_set_voltage_line_edit") self.gridLayout_6.addWidget(self.bdd_set_voltage_line_edit, 7, 1, 1, 1) self.bdd_power_label = QtWidgets.QDoubleSpinBox(self.groupBox_10) self.bdd_power_label.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_power_label.setAlignment(QtCore.Qt.AlignCenter) self.bdd_power_label.setReadOnly(True) self.bdd_power_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.bdd_power_label.setMaximum(9999.99) self.bdd_power_label.setObjectName("bdd_power_label") self.gridLayout_6.addWidget(self.bdd_power_label, 5, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.groupBox_10) self.label_10.setObjectName("label_10") self.gridLayout_6.addWidget(self.label_10, 3, 0, 1, 1) self.bdd_current_label = QtWidgets.QDoubleSpinBox(self.groupBox_10) self.bdd_current_label.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_current_label.setAlignment(QtCore.Qt.AlignCenter) self.bdd_current_label.setReadOnly(True) self.bdd_current_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.bdd_current_label.setMaximum(9999.99) self.bdd_current_label.setObjectName("bdd_current_label") self.gridLayout_6.addWidget(self.bdd_current_label, 4, 1, 1, 1) self.verticalLayout_19.addLayout(self.gridLayout_6) self.verticalLayout_6.addWidget(self.groupBox_10) self.groupBox = QtWidgets.QGroupBox(self.groupBox_2) self.groupBox.setObjectName("groupBox") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName("verticalLayout_3") self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.be_current_label = QtWidgets.QDoubleSpinBox(self.groupBox) self.be_current_label.setMinimumSize(QtCore.QSize(0, 20)) self.be_current_label.setAlignment(QtCore.Qt.AlignCenter) self.be_current_label.setReadOnly(True) self.be_current_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.be_current_label.setMaximum(9999.99) self.be_current_label.setObjectName("be_current_label") self.gridLayout_2.addWidget(self.be_current_label, 3, 1, 1, 1) self.be_voltage_label = QtWidgets.QDoubleSpinBox(self.groupBox) self.be_voltage_label.setMinimumSize(QtCore.QSize(0, 20)) self.be_voltage_label.setAlignment(QtCore.Qt.AlignCenter) self.be_voltage_label.setReadOnly(True) self.be_voltage_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.be_voltage_label.setObjectName("be_voltage_label") self.gridLayout_2.addWidget(self.be_voltage_label, 2, 1, 1, 1) self.be_on_button = QtWidgets.QPushButton(self.groupBox) self.be_on_button.setMinimumSize(QtCore.QSize(0, 20)) self.be_on_button.setObjectName("be_on_button") self.gridLayout_2.addWidget(self.be_on_button, 0, 0, 1, 1) self.be_off_button = QtWidgets.QPushButton(self.groupBox) self.be_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.be_off_button.setObjectName("be_off_button") self.gridLayout_2.addWidget(self.be_off_button, 0, 1, 1, 1) self.be_set_voltage_button = QtWidgets.QPushButton(self.groupBox) self.be_set_voltage_button.setMinimumSize(QtCore.QSize(0, 20)) self.be_set_voltage_button.setObjectName("be_set_voltage_button") self.gridLayout_2.addWidget(self.be_set_voltage_button, 6, 0, 1, 1) self.be_set_voltage_line_edit = QtWidgets.QDoubleSpinBox(self.groupBox) self.be_set_voltage_line_edit.setMinimumSize(QtCore.QSize(0, 20)) self.be_set_voltage_line_edit.setObjectName("be_set_voltage_line_edit") self.gridLayout_2.addWidget(self.be_set_voltage_line_edit, 6, 1, 1, 1) self.be_power_label = QtWidgets.QDoubleSpinBox(self.groupBox) self.be_power_label.setMinimumSize(QtCore.QSize(0, 20)) self.be_power_label.setAlignment(QtCore.Qt.AlignCenter) self.be_power_label.setReadOnly(True) self.be_power_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.be_power_label.setMaximum(9999.99) self.be_power_label.setObjectName("be_power_label") self.gridLayout_2.addWidget(self.be_power_label, 4, 1, 1, 1) self.label_7 = QtWidgets.QLabel(self.groupBox) self.label_7.setObjectName("label_7") self.gridLayout_2.addWidget(self.label_7, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1) self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1) self.verticalLayout_3.addLayout(self.gridLayout_2) self.verticalLayout_6.addWidget(self.groupBox) self.verticalLayout.addWidget(self.groupBox_2) self.customplot = CustomPlot(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.customplot.sizePolicy().hasHeightForWidth()) self.customplot.setSizePolicy(sizePolicy) self.customplot.setObjectName("customplot") self.verticalLayout.addWidget(self.customplot) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.plotter_start_button = QtWidgets.QPushButton(self.widget) self.plotter_start_button.setObjectName("plotter_start_button") self.horizontalLayout_6.addWidget(self.plotter_start_button) self.plotter_clear_button = QtWidgets.QPushButton(self.widget) self.plotter_clear_button.setObjectName("plotter_clear_button") self.horizontalLayout_6.addWidget(self.plotter_clear_button) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout.addLayout(self.verticalLayout) self.verticalLayout_22 = QtWidgets.QVBoxLayout() self.verticalLayout_22.setObjectName("verticalLayout_22") self.stm_group_box = QtWidgets.QGroupBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.stm_group_box.sizePolicy().hasHeightForWidth()) self.stm_group_box.setSizePolicy(sizePolicy) self.stm_group_box.setObjectName("stm_group_box") self.gridLayout_4 = QtWidgets.QGridLayout(self.stm_group_box) self.gridLayout_4.setObjectName("gridLayout_4") self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.groupBox_7 = QtWidgets.QGroupBox(self.stm_group_box) self.groupBox_7.setMinimumSize(QtCore.QSize(230, 0)) self.groupBox_7.setObjectName("groupBox_7") self.verticalLayout_24 = QtWidgets.QVBoxLayout(self.groupBox_7) self.verticalLayout_24.setObjectName("verticalLayout_24") self.scrollArea = QtWidgets.QScrollArea(self.groupBox_7) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 208, 503)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.verticalLayout_13 = QtWidgets.QVBoxLayout( self.scrollAreaWidgetContents) self.verticalLayout_13.setObjectName("verticalLayout_13") self.stm_adc_be_layout = QtWidgets.QVBoxLayout() self.stm_adc_be_layout.setSpacing(0) self.stm_adc_be_layout.setObjectName("stm_adc_be_layout") self.verticalLayout_13.addLayout(self.stm_adc_be_layout) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_13.addItem(spacerItem) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout_24.addWidget(self.scrollArea) self.docking_control_group_box = QtWidgets.QGroupBox(self.groupBox_7) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.docking_control_group_box.sizePolicy().hasHeightForWidth()) self.docking_control_group_box.setSizePolicy(sizePolicy) self.docking_control_group_box.setMinimumSize(QtCore.QSize(0, 80)) self.docking_control_group_box.setMaximumSize( QtCore.QSize(16777215, 60)) self.docking_control_group_box.setObjectName( "docking_control_group_box") self.horizontalLayout_11 = QtWidgets.QHBoxLayout( self.docking_control_group_box) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.docking_control_layout = QtWidgets.QHBoxLayout() self.docking_control_layout.setObjectName("docking_control_layout") self.horizontalLayout_11.addLayout(self.docking_control_layout) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(spacerItem1) self.verticalLayout_24.addWidget(self.docking_control_group_box) self.horizontalLayout_10.addWidget(self.groupBox_7) self.groupBox_8 = QtWidgets.QGroupBox(self.stm_group_box) self.groupBox_8.setMinimumSize(QtCore.QSize(230, 0)) self.groupBox_8.setObjectName("groupBox_8") self.verticalLayout_23 = QtWidgets.QVBoxLayout(self.groupBox_8) self.verticalLayout_23.setObjectName("verticalLayout_23") self.scrollArea_3 = QtWidgets.QScrollArea(self.groupBox_8) self.scrollArea_3.setWidgetResizable(True) self.scrollArea_3.setObjectName("scrollArea_3") self.scrollAreaWidgetContents_3 = QtWidgets.QWidget() self.scrollAreaWidgetContents_3.setGeometry( QtCore.QRect(0, 0, 208, 589)) self.scrollAreaWidgetContents_3.setObjectName( "scrollAreaWidgetContents_3") self.verticalLayout_20 = QtWidgets.QVBoxLayout( self.scrollAreaWidgetContents_3) self.verticalLayout_20.setObjectName("verticalLayout_20") self.stm_adc_bdd1_layout = QtWidgets.QVBoxLayout() self.stm_adc_bdd1_layout.setSpacing(0) self.stm_adc_bdd1_layout.setObjectName("stm_adc_bdd1_layout") self.verticalLayout_20.addLayout(self.stm_adc_bdd1_layout) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_20.addItem(spacerItem2) self.scrollArea_3.setWidget(self.scrollAreaWidgetContents_3) self.verticalLayout_23.addWidget(self.scrollArea_3) self.horizontalLayout_10.addWidget(self.groupBox_8) self.groupBox_9 = QtWidgets.QGroupBox(self.stm_group_box) self.groupBox_9.setMinimumSize(QtCore.QSize(230, 0)) self.groupBox_9.setObjectName("groupBox_9") self.verticalLayout_25 = QtWidgets.QVBoxLayout(self.groupBox_9) self.verticalLayout_25.setObjectName("verticalLayout_25") self.scrollArea_4 = QtWidgets.QScrollArea(self.groupBox_9) self.scrollArea_4.setWidgetResizable(True) self.scrollArea_4.setObjectName("scrollArea_4") self.scrollAreaWidgetContents_4 = QtWidgets.QWidget() self.scrollAreaWidgetContents_4.setGeometry( QtCore.QRect(0, 0, 208, 589)) self.scrollAreaWidgetContents_4.setObjectName( "scrollAreaWidgetContents_4") self.verticalLayout_21 = QtWidgets.QVBoxLayout( self.scrollAreaWidgetContents_4) self.verticalLayout_21.setObjectName("verticalLayout_21") self.stm_adc_bdd2_layout = QtWidgets.QVBoxLayout() self.stm_adc_bdd2_layout.setSpacing(0) self.stm_adc_bdd2_layout.setObjectName("stm_adc_bdd2_layout") self.verticalLayout_21.addLayout(self.stm_adc_bdd2_layout) spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_21.addItem(spacerItem3) self.scrollArea_4.setWidget(self.scrollAreaWidgetContents_4) self.verticalLayout_25.addWidget(self.scrollArea_4) self.horizontalLayout_10.addWidget(self.groupBox_9) self.gridLayout_4.addLayout(self.horizontalLayout_10, 3, 0, 1, 1) self.groupBox_12 = QtWidgets.QGroupBox(self.stm_group_box) self.groupBox_12.setObjectName("groupBox_12") self.verticalLayout_27 = QtWidgets.QVBoxLayout(self.groupBox_12) self.verticalLayout_27.setObjectName("verticalLayout_27") self.verticalLayout_26 = QtWidgets.QVBoxLayout() self.verticalLayout_26.setObjectName("verticalLayout_26") self.label = QtWidgets.QLabel(self.groupBox_12) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.verticalLayout_26.addWidget(self.label) self.verticalLayout_33 = QtWidgets.QVBoxLayout() self.verticalLayout_33.setObjectName("verticalLayout_33") self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.dep_set_p30v_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_set_p30v_button.setObjectName("dep_set_p30v_button") self.horizontalLayout_12.addWidget(self.dep_set_p30v_button) self.dep_set_0v_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_set_0v_button.setObjectName("dep_set_0v_button") self.horizontalLayout_12.addWidget(self.dep_set_0v_button) self.dep_set_m30v_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_set_m30v_button.setObjectName("dep_set_m30v_button") self.horizontalLayout_12.addWidget(self.dep_set_m30v_button) self.verticalLayout_33.addLayout(self.horizontalLayout_12) self.verticalLayout_32 = QtWidgets.QVBoxLayout() self.verticalLayout_32.setObjectName("verticalLayout_32") self.label_5 = QtWidgets.QLabel(self.groupBox_12) self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setObjectName("label_5") self.verticalLayout_32.addWidget(self.label_5) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.verticalLayout_31 = QtWidgets.QVBoxLayout() self.verticalLayout_31.setObjectName("verticalLayout_31") self.label_2 = QtWidgets.QLabel(self.groupBox_12) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.verticalLayout_31.addWidget(self.label_2) self.dep_start_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_start_button.setObjectName("dep_start_button") self.verticalLayout_31.addWidget(self.dep_start_button) self.horizontalLayout_4.addLayout(self.verticalLayout_31) self.verticalLayout_29 = QtWidgets.QVBoxLayout() self.verticalLayout_29.setObjectName("verticalLayout_29") self.dep_time_spinbix = QtWidgets.QSpinBox(self.groupBox_12) self.dep_time_spinbix.setMaximum(999) self.dep_time_spinbix.setProperty("value", 5) self.dep_time_spinbix.setObjectName("dep_time_spinbix") self.verticalLayout_29.addWidget(self.dep_time_spinbix) self.dep_stop_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_stop_button.setObjectName("dep_stop_button") self.verticalLayout_29.addWidget(self.dep_stop_button) self.horizontalLayout_4.addLayout(self.verticalLayout_29) self.verticalLayout_32.addLayout(self.horizontalLayout_4) self.verticalLayout_33.addLayout(self.verticalLayout_32) self.verticalLayout_26.addLayout(self.verticalLayout_33) self.verticalLayout_27.addLayout(self.verticalLayout_26) self.gridLayout_4.addWidget(self.groupBox_12, 4, 0, 1, 1) self.verticalLayout_22.addWidget(self.stm_group_box) self.horizontalLayout.addLayout(self.verticalLayout_22) self.groupBox_6 = QtWidgets.QGroupBox(self.widget) self.groupBox_6.setObjectName("groupBox_6") self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.groupBox_6) self.verticalLayout_8.setObjectName("verticalLayout_8") self.pushButton_8 = QtWidgets.QPushButton(self.groupBox_6) self.pushButton_8.setObjectName("pushButton_8") self.verticalLayout_8.addWidget(self.pushButton_8) self.progressBar = QtWidgets.QProgressBar(self.groupBox_6) self.progressBar.setProperty("value", 0) self.progressBar.setObjectName("progressBar") self.verticalLayout_8.addWidget(self.progressBar) self.tableWidget = QtWidgets.QTableWidget(self.groupBox_6) self.tableWidget.setObjectName("tableWidget") self.tableWidget.setColumnCount(0) self.tableWidget.setRowCount(0) self.verticalLayout_8.addWidget(self.tableWidget) self.horizontalLayout.addWidget(self.groupBox_6) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.frame = QtWidgets.QFrame(self.widget) self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame) self.verticalLayout_4.setObjectName("verticalLayout_4") self.verticalLayout_2.addWidget(self.frame) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout_34.addLayout(self.horizontalLayout) self.verticalLayout_18.addWidget(self.widget) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.gridLayout_9 = QtWidgets.QGridLayout(self.tab_2) self.gridLayout_9.setObjectName("gridLayout_9") self.stm_widget_layout = QtWidgets.QVBoxLayout() self.stm_widget_layout.setObjectName("stm_widget_layout") self.gridLayout_9.addLayout(self.stm_widget_layout, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_2, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.tab_5) self.verticalLayout_11.setObjectName("verticalLayout_11") self.mku_widget_layout = QtWidgets.QVBoxLayout() self.mku_widget_layout.setObjectName("mku_widget_layout") self.verticalLayout_11.addLayout(self.mku_widget_layout) self.tabWidget.addTab(self.tab_5, "") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_3) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.be_widget_layout = QtWidgets.QHBoxLayout() self.be_widget_layout.setObjectName("be_widget_layout") self.horizontalLayout_5.addLayout(self.be_widget_layout) self.tabWidget.addTab(self.tab_3, "") self.tab_6 = QtWidgets.QWidget() self.tab_6.setObjectName("tab_6") self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_6) self.verticalLayout_12.setObjectName("verticalLayout_12") self.bdd_widget_layout = QtWidgets.QVBoxLayout() self.bdd_widget_layout.setObjectName("bdd_widget_layout") self.verticalLayout_12.addLayout(self.bdd_widget_layout) self.tabWidget.addTab(self.tab_6, "") self.tab_7 = QtWidgets.QWidget() self.tab_7.setObjectName("tab_7") self.verticalLayout_30 = QtWidgets.QVBoxLayout(self.tab_7) self.verticalLayout_30.setObjectName("verticalLayout_30") self.dep_widget_layout = QtWidgets.QVBoxLayout() self.dep_widget_layout.setObjectName("dep_widget_layout") self.verticalLayout_30.addLayout(self.dep_widget_layout) self.tabWidget.addTab(self.tab_7, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.tab_4) self.verticalLayout_10.setObjectName("verticalLayout_10") self.interface_widget_layout = QtWidgets.QVBoxLayout() self.interface_widget_layout.setObjectName("interface_widget_layout") self.verticalLayout_10.addLayout(self.interface_widget_layout) self.tabWidget.addTab(self.tab_4, "") self.tab_8 = QtWidgets.QWidget() self.tab_8.setObjectName("tab_8") self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.tab_8) self.horizontalLayout_14.setObjectName("horizontalLayout_14") self.mko_widget_layout = QtWidgets.QHBoxLayout() self.mko_widget_layout.setObjectName("mko_widget_layout") self.horizontalLayout_14.addLayout(self.mko_widget_layout) self.tabWidget.addTab(self.tab_8, "") self.verticalLayout_28.addWidget(self.tabWidget) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.connections_status_group_box = QtWidgets.QGroupBox( self.centralwidget) self.connections_status_group_box.setObjectName( "connections_status_group_box") self.verticalLayout_5 = QtWidgets.QVBoxLayout( self.connections_status_group_box) self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.be_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.be_status_line_edit.setObjectName("be_status_line_edit") self.horizontalLayout_3.addWidget(self.be_status_line_edit) self.bdd_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.bdd_status_line_edit.setObjectName("bdd_status_line_edit") self.horizontalLayout_3.addWidget(self.bdd_status_line_edit) self.stm_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.stm_status_line_edit.setObjectName("stm_status_line_edit") self.horizontalLayout_3.addWidget(self.stm_status_line_edit) self.mku_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.mku_status_line_edit.setObjectName("mku_status_line_edit") self.horizontalLayout_3.addWidget(self.mku_status_line_edit) self.interface_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.interface_status_line_edit.setObjectName( "interface_status_line_edit") self.horizontalLayout_3.addWidget(self.interface_status_line_edit) self.dep_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.dep_status_line_edit.setObjectName("dep_status_line_edit") self.horizontalLayout_3.addWidget(self.dep_status_line_edit) self.verticalLayout_5.addLayout(self.horizontalLayout_3) self.horizontalLayout_2.addWidget(self.connections_status_group_box) self.groupBox_11 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_11.setObjectName("groupBox_11") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_11) self.verticalLayout_7.setObjectName("verticalLayout_7") self.connect_button = QtWidgets.QPushButton(self.groupBox_11) self.connect_button.setObjectName("connect_button") self.verticalLayout_7.addWidget(self.connect_button) self.horizontalLayout_2.addWidget(self.groupBox_11) self.verticalLayout_28.addLayout(self.horizontalLayout_2) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1655, 26)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow)
pfmt[p] = { 'color': colors[i], 'marker': None, 'linestyle': '-', 'label': p } ifd.clrArrayData() # Plot relevant data for j in xrange(0, len(headers)): hj = headers[j] hs = shortheaders[j] if hs != 'time': plt.figure(1) fig = plt.gcf() cp = CustomPlot(fig) h = cp.splot(ifdata, 'time', hj, pfmt) fig = cp.getfig() plt.legend(handles=h, bbox_to_anchor=(1.0, 0.7), bbox_transform=plt.gcf().transFigure, prop={'size': 10}) plt.xlabel('time (s)') if hj.find('mass') != -1: yl = hj + ' ($M_\\odot$)' else: yl = hj plt.ylabel(yl) plt.title(hj + ' For ignMpoleA=' + impa + 'e5, pbIgnRho=10^7.2') plt.savefig(hs + '_mp-2' + suff.rstrip('_ordered.dat') + '.eps') plt.clf()
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1655, 1040) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout_28 = QtWidgets.QVBoxLayout(self.centralwidget) self.verticalLayout_28.setObjectName("verticalLayout_28") self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.verticalLayout_18 = QtWidgets.QVBoxLayout(self.tab) self.verticalLayout_18.setObjectName("verticalLayout_18") self.widget = QtWidgets.QWidget(self.tab) self.widget.setObjectName("widget") self.verticalLayout_34 = QtWidgets.QVBoxLayout(self.widget) self.verticalLayout_34.setObjectName("verticalLayout_34") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.groupBox_5 = QtWidgets.QGroupBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_5.sizePolicy().hasHeightForWidth()) self.groupBox_5.setSizePolicy(sizePolicy) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout.setObjectName("gridLayout") self.groupBox_4 = QtWidgets.QGroupBox(self.groupBox_5) self.groupBox_4.setObjectName("groupBox_4") self.verticalLayout_17 = QtWidgets.QVBoxLayout(self.groupBox_4) self.verticalLayout_17.setObjectName("verticalLayout_17") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.verticalLayout_16 = QtWidgets.QVBoxLayout() self.verticalLayout_16.setObjectName("verticalLayout_16") self.mku_bdd_on_button = QtWidgets.QPushButton(self.groupBox_4) self.mku_bdd_on_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_bdd_on_button.setObjectName("mku_bdd_on_button") self.verticalLayout_16.addWidget(self.mku_bdd_on_button) self.mku_bdd_off_button = QtWidgets.QPushButton(self.groupBox_4) self.mku_bdd_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_bdd_off_button.setObjectName("mku_bdd_off_button") self.verticalLayout_16.addWidget(self.mku_bdd_off_button) self.horizontalLayout_9.addLayout(self.verticalLayout_16) self.verticalLayout_15 = QtWidgets.QVBoxLayout() self.verticalLayout_15.setObjectName("verticalLayout_15") self.mku_tk_on_button = QtWidgets.QPushButton(self.groupBox_4) self.mku_tk_on_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_tk_on_button.setObjectName("mku_tk_on_button") self.verticalLayout_15.addWidget(self.mku_tk_on_button) self.mku_tk_off_button = QtWidgets.QPushButton(self.groupBox_4) self.mku_tk_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_tk_off_button.setObjectName("mku_tk_off_button") self.verticalLayout_15.addWidget(self.mku_tk_off_button) self.horizontalLayout_9.addLayout(self.verticalLayout_15) self.verticalLayout_17.addLayout(self.horizontalLayout_9) self.gridLayout.addWidget(self.groupBox_4, 0, 1, 1, 1) self.groupBox_3 = QtWidgets.QGroupBox(self.groupBox_5) self.groupBox_3.setObjectName("groupBox_3") self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.groupBox_3) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.verticalLayout_14 = QtWidgets.QVBoxLayout() self.verticalLayout_14.setObjectName("verticalLayout_14") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.mku_on1_button = QtWidgets.QPushButton(self.groupBox_3) self.mku_on1_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_on1_button.setObjectName("mku_on1_button") self.horizontalLayout_7.addWidget(self.mku_on1_button) self.mku_on2_button = QtWidgets.QPushButton(self.groupBox_3) self.mku_on2_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_on2_button.setObjectName("mku_on2_button") self.horizontalLayout_7.addWidget(self.mku_on2_button) self.verticalLayout_14.addLayout(self.horizontalLayout_7) self.mku_off_button = QtWidgets.QPushButton(self.groupBox_3) self.mku_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_off_button.setObjectName("mku_off_button") self.verticalLayout_14.addWidget(self.mku_off_button) self.horizontalLayout_8.addLayout(self.verticalLayout_14) self.gridLayout.addWidget(self.groupBox_3, 0, 0, 1, 1) self.mku_duration_line_edit = QtWidgets.QSpinBox(self.groupBox_5) self.mku_duration_line_edit.setMinimumSize(QtCore.QSize(0, 20)) self.mku_duration_line_edit.setMaximum(999) self.mku_duration_line_edit.setProperty("value", 100) self.mku_duration_line_edit.setObjectName("mku_duration_line_edit") self.gridLayout.addWidget(self.mku_duration_line_edit, 1, 1, 1, 1) self.mku_duration_button = QtWidgets.QPushButton(self.groupBox_5) self.mku_duration_button.setMinimumSize(QtCore.QSize(0, 20)) self.mku_duration_button.setObjectName("mku_duration_button") self.gridLayout.addWidget(self.mku_duration_button, 1, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox_5) self.groupBox_2 = QtWidgets.QGroupBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setMinimumSize(QtCore.QSize(0, 0)) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_6.setObjectName("verticalLayout_6") self.verticalLayout_9 = QtWidgets.QVBoxLayout() self.verticalLayout_9.setObjectName("verticalLayout_9") self.line = QtWidgets.QFrame(self.groupBox_2) self.line.setFrameShape(QtWidgets.QFrame.VLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_9.addWidget(self.line) self.verticalLayout_6.addLayout(self.verticalLayout_9) self.groupBox_10 = QtWidgets.QGroupBox(self.groupBox_2) self.groupBox_10.setObjectName("groupBox_10") self.verticalLayout_19 = QtWidgets.QVBoxLayout(self.groupBox_10) self.verticalLayout_19.setObjectName("verticalLayout_19") self.gridLayout_6 = QtWidgets.QGridLayout() self.gridLayout_6.setObjectName("gridLayout_6") self.label_12 = QtWidgets.QLabel(self.groupBox_10) self.label_12.setObjectName("label_12") self.gridLayout_6.addWidget(self.label_12, 5, 0, 1, 1) self.bdd_set_voltage_button = QtWidgets.QPushButton(self.groupBox_10) self.bdd_set_voltage_button.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_set_voltage_button.setObjectName("bdd_set_voltage_button") self.gridLayout_6.addWidget(self.bdd_set_voltage_button, 7, 0, 1, 1) self.bdd_on_button = QtWidgets.QPushButton(self.groupBox_10) self.bdd_on_button.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_on_button.setObjectName("bdd_on_button") self.gridLayout_6.addWidget(self.bdd_on_button, 0, 0, 1, 1) self.bdd_voltage_label = QtWidgets.QDoubleSpinBox(self.groupBox_10) self.bdd_voltage_label.setEnabled(True) self.bdd_voltage_label.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_voltage_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.bdd_voltage_label.setFrame(True) self.bdd_voltage_label.setAlignment(QtCore.Qt.AlignCenter) self.bdd_voltage_label.setReadOnly(True) self.bdd_voltage_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.bdd_voltage_label.setKeyboardTracking(True) self.bdd_voltage_label.setObjectName("bdd_voltage_label") self.gridLayout_6.addWidget(self.bdd_voltage_label, 3, 1, 1, 1) self.bdd_off_button = QtWidgets.QPushButton(self.groupBox_10) self.bdd_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_off_button.setObjectName("bdd_off_button") self.gridLayout_6.addWidget(self.bdd_off_button, 0, 1, 1, 1) self.label_11 = QtWidgets.QLabel(self.groupBox_10) self.label_11.setObjectName("label_11") self.gridLayout_6.addWidget(self.label_11, 4, 0, 1, 1) self.bdd_set_voltage_line_edit = QtWidgets.QDoubleSpinBox( self.groupBox_10) self.bdd_set_voltage_line_edit.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_set_voltage_line_edit.setObjectName( "bdd_set_voltage_line_edit") self.gridLayout_6.addWidget(self.bdd_set_voltage_line_edit, 7, 1, 1, 1) self.bdd_power_label = QtWidgets.QDoubleSpinBox(self.groupBox_10) self.bdd_power_label.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_power_label.setAlignment(QtCore.Qt.AlignCenter) self.bdd_power_label.setReadOnly(True) self.bdd_power_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.bdd_power_label.setMaximum(9999.99) self.bdd_power_label.setObjectName("bdd_power_label") self.gridLayout_6.addWidget(self.bdd_power_label, 5, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.groupBox_10) self.label_10.setObjectName("label_10") self.gridLayout_6.addWidget(self.label_10, 3, 0, 1, 1) self.bdd_current_label = QtWidgets.QDoubleSpinBox(self.groupBox_10) self.bdd_current_label.setMinimumSize(QtCore.QSize(0, 20)) self.bdd_current_label.setAlignment(QtCore.Qt.AlignCenter) self.bdd_current_label.setReadOnly(True) self.bdd_current_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.bdd_current_label.setMaximum(9999.99) self.bdd_current_label.setObjectName("bdd_current_label") self.gridLayout_6.addWidget(self.bdd_current_label, 4, 1, 1, 1) self.verticalLayout_19.addLayout(self.gridLayout_6) self.verticalLayout_6.addWidget(self.groupBox_10) self.groupBox = QtWidgets.QGroupBox(self.groupBox_2) self.groupBox.setObjectName("groupBox") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName("verticalLayout_3") self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.be_current_label = QtWidgets.QDoubleSpinBox(self.groupBox) self.be_current_label.setMinimumSize(QtCore.QSize(0, 20)) self.be_current_label.setAlignment(QtCore.Qt.AlignCenter) self.be_current_label.setReadOnly(True) self.be_current_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.be_current_label.setMaximum(9999.99) self.be_current_label.setObjectName("be_current_label") self.gridLayout_2.addWidget(self.be_current_label, 3, 1, 1, 1) self.be_voltage_label = QtWidgets.QDoubleSpinBox(self.groupBox) self.be_voltage_label.setMinimumSize(QtCore.QSize(0, 20)) self.be_voltage_label.setAlignment(QtCore.Qt.AlignCenter) self.be_voltage_label.setReadOnly(True) self.be_voltage_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.be_voltage_label.setObjectName("be_voltage_label") self.gridLayout_2.addWidget(self.be_voltage_label, 2, 1, 1, 1) self.be_on_button = QtWidgets.QPushButton(self.groupBox) self.be_on_button.setMinimumSize(QtCore.QSize(0, 20)) self.be_on_button.setObjectName("be_on_button") self.gridLayout_2.addWidget(self.be_on_button, 0, 0, 1, 1) self.be_off_button = QtWidgets.QPushButton(self.groupBox) self.be_off_button.setMinimumSize(QtCore.QSize(0, 20)) self.be_off_button.setObjectName("be_off_button") self.gridLayout_2.addWidget(self.be_off_button, 0, 1, 1, 1) self.be_set_voltage_button = QtWidgets.QPushButton(self.groupBox) self.be_set_voltage_button.setMinimumSize(QtCore.QSize(0, 20)) self.be_set_voltage_button.setObjectName("be_set_voltage_button") self.gridLayout_2.addWidget(self.be_set_voltage_button, 6, 0, 1, 1) self.be_set_voltage_line_edit = QtWidgets.QDoubleSpinBox(self.groupBox) self.be_set_voltage_line_edit.setMinimumSize(QtCore.QSize(0, 20)) self.be_set_voltage_line_edit.setObjectName("be_set_voltage_line_edit") self.gridLayout_2.addWidget(self.be_set_voltage_line_edit, 6, 1, 1, 1) self.be_power_label = QtWidgets.QDoubleSpinBox(self.groupBox) self.be_power_label.setMinimumSize(QtCore.QSize(0, 20)) self.be_power_label.setAlignment(QtCore.Qt.AlignCenter) self.be_power_label.setReadOnly(True) self.be_power_label.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.be_power_label.setMaximum(9999.99) self.be_power_label.setObjectName("be_power_label") self.gridLayout_2.addWidget(self.be_power_label, 4, 1, 1, 1) self.label_7 = QtWidgets.QLabel(self.groupBox) self.label_7.setObjectName("label_7") self.gridLayout_2.addWidget(self.label_7, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1) self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1) self.verticalLayout_3.addLayout(self.gridLayout_2) self.verticalLayout_6.addWidget(self.groupBox) self.verticalLayout.addWidget(self.groupBox_2) self.customplot = CustomPlot(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.customplot.sizePolicy().hasHeightForWidth()) self.customplot.setSizePolicy(sizePolicy) self.customplot.setObjectName("customplot") self.verticalLayout.addWidget(self.customplot) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.plotter_start_button = QtWidgets.QPushButton(self.widget) self.plotter_start_button.setObjectName("plotter_start_button") self.horizontalLayout_6.addWidget(self.plotter_start_button) self.plotter_clear_button = QtWidgets.QPushButton(self.widget) self.plotter_clear_button.setObjectName("plotter_clear_button") self.horizontalLayout_6.addWidget(self.plotter_clear_button) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout.addLayout(self.verticalLayout) self.verticalLayout_22 = QtWidgets.QVBoxLayout() self.verticalLayout_22.setObjectName("verticalLayout_22") self.stm_group_box = QtWidgets.QGroupBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.stm_group_box.sizePolicy().hasHeightForWidth()) self.stm_group_box.setSizePolicy(sizePolicy) self.stm_group_box.setObjectName("stm_group_box") self.gridLayout_4 = QtWidgets.QGridLayout(self.stm_group_box) self.gridLayout_4.setObjectName("gridLayout_4") self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.groupBox_7 = QtWidgets.QGroupBox(self.stm_group_box) self.groupBox_7.setMinimumSize(QtCore.QSize(230, 0)) self.groupBox_7.setObjectName("groupBox_7") self.verticalLayout_24 = QtWidgets.QVBoxLayout(self.groupBox_7) self.verticalLayout_24.setObjectName("verticalLayout_24") self.scrollArea = QtWidgets.QScrollArea(self.groupBox_7) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 208, 503)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.verticalLayout_13 = QtWidgets.QVBoxLayout( self.scrollAreaWidgetContents) self.verticalLayout_13.setObjectName("verticalLayout_13") self.stm_adc_be_layout = QtWidgets.QVBoxLayout() self.stm_adc_be_layout.setSpacing(0) self.stm_adc_be_layout.setObjectName("stm_adc_be_layout") self.verticalLayout_13.addLayout(self.stm_adc_be_layout) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_13.addItem(spacerItem) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout_24.addWidget(self.scrollArea) self.docking_control_group_box = QtWidgets.QGroupBox(self.groupBox_7) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.docking_control_group_box.sizePolicy().hasHeightForWidth()) self.docking_control_group_box.setSizePolicy(sizePolicy) self.docking_control_group_box.setMinimumSize(QtCore.QSize(0, 80)) self.docking_control_group_box.setMaximumSize( QtCore.QSize(16777215, 60)) self.docking_control_group_box.setObjectName( "docking_control_group_box") self.horizontalLayout_11 = QtWidgets.QHBoxLayout( self.docking_control_group_box) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.docking_control_layout = QtWidgets.QHBoxLayout() self.docking_control_layout.setObjectName("docking_control_layout") self.horizontalLayout_11.addLayout(self.docking_control_layout) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(spacerItem1) self.verticalLayout_24.addWidget(self.docking_control_group_box) self.horizontalLayout_10.addWidget(self.groupBox_7) self.groupBox_8 = QtWidgets.QGroupBox(self.stm_group_box) self.groupBox_8.setMinimumSize(QtCore.QSize(230, 0)) self.groupBox_8.setObjectName("groupBox_8") self.verticalLayout_23 = QtWidgets.QVBoxLayout(self.groupBox_8) self.verticalLayout_23.setObjectName("verticalLayout_23") self.scrollArea_3 = QtWidgets.QScrollArea(self.groupBox_8) self.scrollArea_3.setWidgetResizable(True) self.scrollArea_3.setObjectName("scrollArea_3") self.scrollAreaWidgetContents_3 = QtWidgets.QWidget() self.scrollAreaWidgetContents_3.setGeometry( QtCore.QRect(0, 0, 208, 589)) self.scrollAreaWidgetContents_3.setObjectName( "scrollAreaWidgetContents_3") self.verticalLayout_20 = QtWidgets.QVBoxLayout( self.scrollAreaWidgetContents_3) self.verticalLayout_20.setObjectName("verticalLayout_20") self.stm_adc_bdd1_layout = QtWidgets.QVBoxLayout() self.stm_adc_bdd1_layout.setSpacing(0) self.stm_adc_bdd1_layout.setObjectName("stm_adc_bdd1_layout") self.verticalLayout_20.addLayout(self.stm_adc_bdd1_layout) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_20.addItem(spacerItem2) self.scrollArea_3.setWidget(self.scrollAreaWidgetContents_3) self.verticalLayout_23.addWidget(self.scrollArea_3) self.horizontalLayout_10.addWidget(self.groupBox_8) self.groupBox_9 = QtWidgets.QGroupBox(self.stm_group_box) self.groupBox_9.setMinimumSize(QtCore.QSize(230, 0)) self.groupBox_9.setObjectName("groupBox_9") self.verticalLayout_25 = QtWidgets.QVBoxLayout(self.groupBox_9) self.verticalLayout_25.setObjectName("verticalLayout_25") self.scrollArea_4 = QtWidgets.QScrollArea(self.groupBox_9) self.scrollArea_4.setWidgetResizable(True) self.scrollArea_4.setObjectName("scrollArea_4") self.scrollAreaWidgetContents_4 = QtWidgets.QWidget() self.scrollAreaWidgetContents_4.setGeometry( QtCore.QRect(0, 0, 208, 589)) self.scrollAreaWidgetContents_4.setObjectName( "scrollAreaWidgetContents_4") self.verticalLayout_21 = QtWidgets.QVBoxLayout( self.scrollAreaWidgetContents_4) self.verticalLayout_21.setObjectName("verticalLayout_21") self.stm_adc_bdd2_layout = QtWidgets.QVBoxLayout() self.stm_adc_bdd2_layout.setSpacing(0) self.stm_adc_bdd2_layout.setObjectName("stm_adc_bdd2_layout") self.verticalLayout_21.addLayout(self.stm_adc_bdd2_layout) spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_21.addItem(spacerItem3) self.scrollArea_4.setWidget(self.scrollAreaWidgetContents_4) self.verticalLayout_25.addWidget(self.scrollArea_4) self.horizontalLayout_10.addWidget(self.groupBox_9) self.gridLayout_4.addLayout(self.horizontalLayout_10, 3, 0, 1, 1) self.groupBox_12 = QtWidgets.QGroupBox(self.stm_group_box) self.groupBox_12.setObjectName("groupBox_12") self.verticalLayout_27 = QtWidgets.QVBoxLayout(self.groupBox_12) self.verticalLayout_27.setObjectName("verticalLayout_27") self.verticalLayout_26 = QtWidgets.QVBoxLayout() self.verticalLayout_26.setObjectName("verticalLayout_26") self.label = QtWidgets.QLabel(self.groupBox_12) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.verticalLayout_26.addWidget(self.label) self.verticalLayout_33 = QtWidgets.QVBoxLayout() self.verticalLayout_33.setObjectName("verticalLayout_33") self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.dep_set_p30v_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_set_p30v_button.setObjectName("dep_set_p30v_button") self.horizontalLayout_12.addWidget(self.dep_set_p30v_button) self.dep_set_0v_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_set_0v_button.setObjectName("dep_set_0v_button") self.horizontalLayout_12.addWidget(self.dep_set_0v_button) self.dep_set_m30v_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_set_m30v_button.setObjectName("dep_set_m30v_button") self.horizontalLayout_12.addWidget(self.dep_set_m30v_button) self.verticalLayout_33.addLayout(self.horizontalLayout_12) self.verticalLayout_32 = QtWidgets.QVBoxLayout() self.verticalLayout_32.setObjectName("verticalLayout_32") self.label_5 = QtWidgets.QLabel(self.groupBox_12) self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setObjectName("label_5") self.verticalLayout_32.addWidget(self.label_5) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.verticalLayout_31 = QtWidgets.QVBoxLayout() self.verticalLayout_31.setObjectName("verticalLayout_31") self.label_2 = QtWidgets.QLabel(self.groupBox_12) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.verticalLayout_31.addWidget(self.label_2) self.dep_start_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_start_button.setObjectName("dep_start_button") self.verticalLayout_31.addWidget(self.dep_start_button) self.horizontalLayout_4.addLayout(self.verticalLayout_31) self.verticalLayout_29 = QtWidgets.QVBoxLayout() self.verticalLayout_29.setObjectName("verticalLayout_29") self.dep_time_spinbix = QtWidgets.QSpinBox(self.groupBox_12) self.dep_time_spinbix.setMaximum(999) self.dep_time_spinbix.setProperty("value", 5) self.dep_time_spinbix.setObjectName("dep_time_spinbix") self.verticalLayout_29.addWidget(self.dep_time_spinbix) self.dep_stop_button = QtWidgets.QPushButton(self.groupBox_12) self.dep_stop_button.setObjectName("dep_stop_button") self.verticalLayout_29.addWidget(self.dep_stop_button) self.horizontalLayout_4.addLayout(self.verticalLayout_29) self.verticalLayout_32.addLayout(self.horizontalLayout_4) self.verticalLayout_33.addLayout(self.verticalLayout_32) self.verticalLayout_26.addLayout(self.verticalLayout_33) self.verticalLayout_27.addLayout(self.verticalLayout_26) self.gridLayout_4.addWidget(self.groupBox_12, 4, 0, 1, 1) self.verticalLayout_22.addWidget(self.stm_group_box) self.horizontalLayout.addLayout(self.verticalLayout_22) self.groupBox_6 = QtWidgets.QGroupBox(self.widget) self.groupBox_6.setObjectName("groupBox_6") self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.groupBox_6) self.verticalLayout_8.setObjectName("verticalLayout_8") self.pushButton_8 = QtWidgets.QPushButton(self.groupBox_6) self.pushButton_8.setObjectName("pushButton_8") self.verticalLayout_8.addWidget(self.pushButton_8) self.progressBar = QtWidgets.QProgressBar(self.groupBox_6) self.progressBar.setProperty("value", 0) self.progressBar.setObjectName("progressBar") self.verticalLayout_8.addWidget(self.progressBar) self.tableWidget = QtWidgets.QTableWidget(self.groupBox_6) self.tableWidget.setObjectName("tableWidget") self.tableWidget.setColumnCount(0) self.tableWidget.setRowCount(0) self.verticalLayout_8.addWidget(self.tableWidget) self.horizontalLayout.addWidget(self.groupBox_6) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.frame = QtWidgets.QFrame(self.widget) self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame) self.verticalLayout_4.setObjectName("verticalLayout_4") self.verticalLayout_2.addWidget(self.frame) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout_34.addLayout(self.horizontalLayout) self.verticalLayout_18.addWidget(self.widget) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.gridLayout_9 = QtWidgets.QGridLayout(self.tab_2) self.gridLayout_9.setObjectName("gridLayout_9") self.stm_widget_layout = QtWidgets.QVBoxLayout() self.stm_widget_layout.setObjectName("stm_widget_layout") self.gridLayout_9.addLayout(self.stm_widget_layout, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_2, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.tab_5) self.verticalLayout_11.setObjectName("verticalLayout_11") self.mku_widget_layout = QtWidgets.QVBoxLayout() self.mku_widget_layout.setObjectName("mku_widget_layout") self.verticalLayout_11.addLayout(self.mku_widget_layout) self.tabWidget.addTab(self.tab_5, "") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_3) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.be_widget_layout = QtWidgets.QHBoxLayout() self.be_widget_layout.setObjectName("be_widget_layout") self.horizontalLayout_5.addLayout(self.be_widget_layout) self.tabWidget.addTab(self.tab_3, "") self.tab_6 = QtWidgets.QWidget() self.tab_6.setObjectName("tab_6") self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_6) self.verticalLayout_12.setObjectName("verticalLayout_12") self.bdd_widget_layout = QtWidgets.QVBoxLayout() self.bdd_widget_layout.setObjectName("bdd_widget_layout") self.verticalLayout_12.addLayout(self.bdd_widget_layout) self.tabWidget.addTab(self.tab_6, "") self.tab_7 = QtWidgets.QWidget() self.tab_7.setObjectName("tab_7") self.verticalLayout_30 = QtWidgets.QVBoxLayout(self.tab_7) self.verticalLayout_30.setObjectName("verticalLayout_30") self.dep_widget_layout = QtWidgets.QVBoxLayout() self.dep_widget_layout.setObjectName("dep_widget_layout") self.verticalLayout_30.addLayout(self.dep_widget_layout) self.tabWidget.addTab(self.tab_7, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.tab_4) self.verticalLayout_10.setObjectName("verticalLayout_10") self.interface_widget_layout = QtWidgets.QVBoxLayout() self.interface_widget_layout.setObjectName("interface_widget_layout") self.verticalLayout_10.addLayout(self.interface_widget_layout) self.tabWidget.addTab(self.tab_4, "") self.tab_8 = QtWidgets.QWidget() self.tab_8.setObjectName("tab_8") self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.tab_8) self.horizontalLayout_14.setObjectName("horizontalLayout_14") self.mko_widget_layout = QtWidgets.QHBoxLayout() self.mko_widget_layout.setObjectName("mko_widget_layout") self.horizontalLayout_14.addLayout(self.mko_widget_layout) self.tabWidget.addTab(self.tab_8, "") self.verticalLayout_28.addWidget(self.tabWidget) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.connections_status_group_box = QtWidgets.QGroupBox( self.centralwidget) self.connections_status_group_box.setObjectName( "connections_status_group_box") self.verticalLayout_5 = QtWidgets.QVBoxLayout( self.connections_status_group_box) self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.be_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.be_status_line_edit.setObjectName("be_status_line_edit") self.horizontalLayout_3.addWidget(self.be_status_line_edit) self.bdd_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.bdd_status_line_edit.setObjectName("bdd_status_line_edit") self.horizontalLayout_3.addWidget(self.bdd_status_line_edit) self.stm_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.stm_status_line_edit.setObjectName("stm_status_line_edit") self.horizontalLayout_3.addWidget(self.stm_status_line_edit) self.mku_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.mku_status_line_edit.setObjectName("mku_status_line_edit") self.horizontalLayout_3.addWidget(self.mku_status_line_edit) self.interface_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.interface_status_line_edit.setObjectName( "interface_status_line_edit") self.horizontalLayout_3.addWidget(self.interface_status_line_edit) self.dep_status_line_edit = QtWidgets.QLineEdit( self.connections_status_group_box) self.dep_status_line_edit.setObjectName("dep_status_line_edit") self.horizontalLayout_3.addWidget(self.dep_status_line_edit) self.verticalLayout_5.addLayout(self.horizontalLayout_3) self.horizontalLayout_2.addWidget(self.connections_status_group_box) self.groupBox_11 = QtWidgets.QGroupBox(self.centralwidget) self.groupBox_11.setObjectName("groupBox_11") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_11) self.verticalLayout_7.setObjectName("verticalLayout_7") self.connect_button = QtWidgets.QPushButton(self.groupBox_11) self.connect_button.setObjectName("connect_button") self.verticalLayout_7.addWidget(self.connect_button) self.horizontalLayout_2.addWidget(self.groupBox_11) self.verticalLayout_28.addLayout(self.horizontalLayout_2) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1655, 26)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.groupBox_5.setTitle(_translate("MainWindow", "МКУ")) self.groupBox_4.setTitle(_translate("MainWindow", "БДД")) self.mku_bdd_on_button.setText(_translate("MainWindow", "БДД ВКЛ")) self.mku_bdd_off_button.setText(_translate("MainWindow", "БДД ОТКЛ")) self.mku_tk_on_button.setText(_translate("MainWindow", "ТК ВКЛ")) self.mku_tk_off_button.setText(_translate("MainWindow", "ТК ОТКЛ")) self.groupBox_3.setTitle(_translate("MainWindow", "БЭ")) self.mku_on1_button.setText(_translate("MainWindow", "ПК1")) self.mku_on2_button.setText(_translate("MainWindow", "ПК2")) self.mku_off_button.setText(_translate("MainWindow", "ОТКЛ")) self.mku_duration_button.setText( _translate("MainWindow", "Задать длительность импульса, мс")) self.groupBox_2.setTitle(_translate("MainWindow", "Питание")) self.groupBox_10.setTitle(_translate("MainWindow", "БДД")) self.label_12.setText(_translate("MainWindow", "Мощность, мВт:")) self.bdd_set_voltage_button.setText( _translate("MainWindow", "Задать целевое напряжение, В")) self.bdd_on_button.setText(_translate("MainWindow", "ВКЛ")) self.bdd_off_button.setText(_translate("MainWindow", "ОТКЛ")) self.label_11.setText(_translate("MainWindow", "Ток, мА:")) self.label_10.setText(_translate("MainWindow", "Напряжение, В:")) self.groupBox.setTitle(_translate("MainWindow", "БЭ")) self.be_on_button.setText(_translate("MainWindow", "ВКЛ")) self.be_off_button.setText(_translate("MainWindow", "ОТКЛ")) self.be_set_voltage_button.setText( _translate("MainWindow", "Задать целевое напряжение, В")) self.label_7.setText(_translate("MainWindow", "Мощность, мВт:")) self.label_3.setText(_translate("MainWindow", "Напряжение, В:")) self.label_4.setText(_translate("MainWindow", "Ток, мА:")) self.plotter_start_button.setText(_translate("MainWindow", "Начать")) self.plotter_clear_button.setText(_translate("MainWindow", "Очистить")) self.stm_group_box.setTitle(_translate("MainWindow", "СТМ")) self.groupBox_7.setTitle(_translate("MainWindow", "БЭ")) self.docking_control_group_box.setTitle( _translate("MainWindow", "К.С.")) self.groupBox_8.setTitle(_translate("MainWindow", "БДД1")) self.groupBox_9.setTitle(_translate("MainWindow", "БДД2")) self.groupBox_12.setTitle(_translate("MainWindow", "ДЭП")) self.label.setText(_translate("MainWindow", "Напряжение ДЭП")) self.dep_set_p30v_button.setText(_translate("MainWindow", "30 В")) self.dep_set_0v_button.setText(_translate("MainWindow", "0 В")) self.dep_set_m30v_button.setText(_translate("MainWindow", "-30 В")) self.label_5.setText( _translate("MainWindow", "Циклическое воздействие")) self.label_2.setText(_translate("MainWindow", "Период, с")) self.dep_start_button.setText(_translate("MainWindow", "Старт")) self.dep_stop_button.setText(_translate("MainWindow", "Стоп")) self.groupBox_6.setTitle(_translate("MainWindow", "Тест")) self.pushButton_8.setText(_translate("MainWindow", "Запуск теста")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "БДК2")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "СТМ")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("MainWindow", "МКУ")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Питание БЭ")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), _translate("MainWindow", "Питание БДД")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_7), _translate("MainWindow", "ДЭП")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("MainWindow", "Интерфейс")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_8), _translate("MainWindow", "МКО")) self.connections_status_group_box.setTitle( _translate("MainWindow", "Состояние подключения")) self.be_status_line_edit.setText( _translate("MainWindow", "Питание БЭ подключение: отсутствует")) self.bdd_status_line_edit.setText( _translate("MainWindow", "Питание БДД подключение: отсутствует")) self.stm_status_line_edit.setText( _translate("MainWindow", "СТМ подключение: отсутствует")) self.mku_status_line_edit.setText( _translate("MainWindow", "МКУ подключение: остутствует")) self.interface_status_line_edit.setText( _translate("MainWindow", "Интерфейс подключение: отсутствует")) self.dep_status_line_edit.setText( _translate("MainWindow", "ДЭП подключение: отсутствует")) self.groupBox_11.setTitle(_translate("MainWindow", "Подключение")) self.connect_button.setText(_translate("MainWindow", "Подключить"))