本文整理汇总了Python中pyqtgraph.PlotWidget.sizePolicy方法的典型用法代码示例。如果您正苦于以下问题:Python PlotWidget.sizePolicy方法的具体用法?Python PlotWidget.sizePolicy怎么用?Python PlotWidget.sizePolicy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqtgraph.PlotWidget
的用法示例。
在下文中一共展示了PlotWidget.sizePolicy方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_MainWidget
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_MainWidget(object):
def setupUi(self, MainWidget):
MainWidget.setObjectName(_fromUtf8("MainWidget"))
MainWidget.resize(791, 488)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWidget.sizePolicy().hasHeightForWidth())
MainWidget.setSizePolicy(sizePolicy)
MainWidget.setMinimumSize(QtCore.QSize(170, 0))
MainWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
MainWidget.setStyleSheet(_fromUtf8("background-color: rgb(0, 0, 0);\n"
"color: rgb(255, 255, 255);\n"
"font: 10pt \"Droid Sans Mono\";"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(MainWidget)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.horizontalLayout_8 = QtGui.QHBoxLayout()
self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
self.plotVertLayout = QtGui.QVBoxLayout()
self.plotVertLayout.setObjectName(_fromUtf8("plotVertLayout"))
self.vitalsPlot = PlotWidget(MainWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.vitalsPlot.sizePolicy().hasHeightForWidth())
self.vitalsPlot.setSizePolicy(sizePolicy)
self.vitalsPlot.setMinimumSize(QtCore.QSize(150, 8))
self.vitalsPlot.setStyleSheet(_fromUtf8("background-color: rgb(170, 0, 0);"))
self.vitalsPlot.setFrameShape(QtGui.QFrame.NoFrame)
self.vitalsPlot.setFrameShadow(QtGui.QFrame.Plain)
self.vitalsPlot.setLineWidth(0)
self.vitalsPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.vitalsPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.vitalsPlot.setObjectName(_fromUtf8("vitalsPlot"))
self.plotVertLayout.addWidget(self.vitalsPlot)
self.slowPlotHorizLayout = QtGui.QHBoxLayout()
self.slowPlotHorizLayout.setObjectName(_fromUtf8("slowPlotHorizLayout"))
self.textBrowser = QtGui.QTextBrowser(MainWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textBrowser.sizePolicy().hasHeightForWidth())
self.textBrowser.setSizePolicy(sizePolicy)
self.textBrowser.setMinimumSize(QtCore.QSize(136, 30))
self.textBrowser.setMaximumSize(QtCore.QSize(136, 30))
self.textBrowser.setStyleSheet(_fromUtf8("font: 9pt \"Droid Sans\";"))
self.textBrowser.setFrameShape(QtGui.QFrame.NoFrame)
self.textBrowser.setFrameShadow(QtGui.QFrame.Plain)
self.textBrowser.setLineWidth(0)
self.textBrowser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.textBrowser.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
self.slowPlotHorizLayout.addWidget(self.textBrowser)
self.slowUpdatePeriod = QtGui.QDoubleSpinBox(MainWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.slowUpdatePeriod.sizePolicy().hasHeightForWidth())
self.slowUpdatePeriod.setSizePolicy(sizePolicy)
self.slowUpdatePeriod.setMinimumSize(QtCore.QSize(150, 0))
self.slowUpdatePeriod.setMaximumSize(QtCore.QSize(150, 16777215))
self.slowUpdatePeriod.setStyleSheet(_fromUtf8("background-color: rgb(255,255,255);\n"
"font: 9pt \"Droid Sans\";\n"
"color: rgb(0, 0, 0);"))
self.slowUpdatePeriod.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.slowUpdatePeriod.setDecimals(1)
self.slowUpdatePeriod.setMinimum(0.1)
self.slowUpdatePeriod.setMaximum(1000000000.0)
self.slowUpdatePeriod.setProperty("value", 1.0)
self.slowUpdatePeriod.setObjectName(_fromUtf8("slowUpdatePeriod"))
self.slowPlotHorizLayout.addWidget(self.slowUpdatePeriod)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.slowPlotHorizLayout.addItem(spacerItem)
self.plotVertLayout.addLayout(self.slowPlotHorizLayout)
self.ventilationPlot = PlotWidget(MainWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ventilationPlot.sizePolicy().hasHeightForWidth())
self.ventilationPlot.setSizePolicy(sizePolicy)
self.ventilationPlot.setMinimumSize(QtCore.QSize(150, 10))
self.ventilationPlot.setStyleSheet(_fromUtf8("background-color: rgb(255, 0, 255);"))
self.ventilationPlot.setFrameShape(QtGui.QFrame.NoFrame)
self.ventilationPlot.setFrameShadow(QtGui.QFrame.Plain)
self.ventilationPlot.setLineWidth(0)
self.ventilationPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.ventilationPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.ventilationPlot.setObjectName(_fromUtf8("pressurePlot"))
self.plotVertLayout.addWidget(self.ventilationPlot)
self.ecgPlot = PlotWidget(MainWidget)
self.ecgPlot.setMinimumSize(QtCore.QSize(150, 0))
self.ecgPlot.setStyleSheet(_fromUtf8("background-color: rgb(0, 170, 0);"))
self.ecgPlot.setFrameShape(QtGui.QFrame.NoFrame)
self.ecgPlot.setFrameShadow(QtGui.QFrame.Plain)
self.ecgPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.ecgPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.ecgPlot.setObjectName(_fromUtf8("ecgPlot"))
self.plotVertLayout.addWidget(self.ecgPlot)
self.fastPlotHorizLayout = QtGui.QHBoxLayout()
self.fastPlotHorizLayout.setObjectName(_fromUtf8("fastPlotHorizLayout"))
#.........这里部分代码省略.........
示例2: Ui_Form
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(814, 588)
self.verticalLayout_2 = QtGui.QVBoxLayout(Form)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout_4 = QtGui.QHBoxLayout()
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
self.splitter = QtGui.QSplitter(Form)
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setObjectName(_fromUtf8("splitter"))
self.horizontalLayoutWidget_2 = QtGui.QWidget(self.splitter)
self.horizontalLayoutWidget_2.setObjectName(_fromUtf8("horizontalLayoutWidget_2"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.horizontalLayoutWidget_2)
self.horizontalLayout_3.setMargin(0)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.splitter_slice_vert = QtGui.QSplitter(self.horizontalLayoutWidget_2)
self.splitter_slice_vert.setOrientation(QtCore.Qt.Horizontal)
self.splitter_slice_vert.setObjectName(_fromUtf8("splitter_slice_vert"))
self.splitter_slice_horiz = QtGui.QSplitter(self.splitter_slice_vert)
self.splitter_slice_horiz.setOrientation(QtCore.Qt.Vertical)
self.splitter_slice_horiz.setObjectName(_fromUtf8("splitter_slice_horiz"))
self.graphicsView = GraphicsView(self.splitter_slice_horiz)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.plot_slice_horiz = PlotWidget(self.splitter_slice_horiz)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plot_slice_horiz.sizePolicy().hasHeightForWidth())
self.plot_slice_horiz.setSizePolicy(sizePolicy)
self.plot_slice_horiz.setMinimumSize(QtCore.QSize(0, 40))
self.plot_slice_horiz.setObjectName(_fromUtf8("plot_slice_horiz"))
self.plot_slice_vert = PlotWidget(self.splitter_slice_vert)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plot_slice_vert.sizePolicy().hasHeightForWidth())
self.plot_slice_vert.setSizePolicy(sizePolicy)
self.plot_slice_vert.setMinimumSize(QtCore.QSize(0, 40))
self.plot_slice_vert.setObjectName(_fromUtf8("plot_slice_vert"))
self.horizontalLayout_3.addWidget(self.splitter_slice_vert)
self.roiPlot = PlotWidget(self.splitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.roiPlot.sizePolicy().hasHeightForWidth())
self.roiPlot.setSizePolicy(sizePolicy)
self.roiPlot.setMinimumSize(QtCore.QSize(0, 40))
self.roiPlot.setObjectName(_fromUtf8("roiPlot"))
self.horizontalLayout_4.addWidget(self.splitter)
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.histogram = HistogramLUTWidget(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.histogram.sizePolicy().hasHeightForWidth())
self.histogram.setSizePolicy(sizePolicy)
self.histogram.setMaximumSize(QtCore.QSize(150, 16777215))
self.histogram.setObjectName(_fromUtf8("histogram"))
self.verticalLayout.addWidget(self.histogram)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.menuBtn = QtGui.QPushButton(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.menuBtn.sizePolicy().hasHeightForWidth())
self.menuBtn.setSizePolicy(sizePolicy)
self.menuBtn.setMaximumSize(QtCore.QSize(70, 16777215))
self.menuBtn.setObjectName(_fromUtf8("menuBtn"))
self.horizontalLayout_2.addWidget(self.menuBtn)
self.roiBtn = QtGui.QPushButton(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.roiBtn.sizePolicy().hasHeightForWidth())
self.roiBtn.setSizePolicy(sizePolicy)
self.roiBtn.setMaximumSize(QtCore.QSize(70, 16777215))
self.roiBtn.setCheckable(True)
self.roiBtn.setObjectName(_fromUtf8("roiBtn"))
self.horizontalLayout_2.addWidget(self.roiBtn)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_4.addLayout(self.verticalLayout)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.normGroup = QtGui.QGroupBox(Form)
self.normGroup.setObjectName(_fromUtf8("normGroup"))
self.gridLayout_2 = QtGui.QGridLayout(self.normGroup)
self.gridLayout_2.setMargin(0)
self.gridLayout_2.setSpacing(0)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.label_4 = QtGui.QLabel(self.normGroup)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_4.setFont(font)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1)
self.label_9 = QtGui.QLabel(self.normGroup)
self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
#.........这里部分代码省略.........
示例3: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(586, 726)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.Quit = QtGui.QPushButton(self.centralwidget)
self.Quit.setEnabled(True)
self.Quit.setGeometry(QtCore.QRect(520, 100, 61, 31))
self.Quit.setObjectName(_fromUtf8("Quit"))
self.label = QtGui.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(20, 110, 16, 16))
self.label.setObjectName(_fromUtf8("label"))
self.label_2 = QtGui.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(170, 110, 16, 16))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.label_3 = QtGui.QLabel(self.centralwidget)
self.label_3.setGeometry(QtCore.QRect(310, 110, 16, 16))
self.label_3.setObjectName(_fromUtf8("label_3"))
self.label_5 = QtGui.QLabel(self.centralwidget)
self.label_5.setGeometry(QtCore.QRect(30, 50, 61, 20))
self.label_5.setObjectName(_fromUtf8("label_5"))
self.groupBox = QtGui.QGroupBox(self.centralwidget)
self.groupBox.setGeometry(QtCore.QRect(10, 0, 571, 81))
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.newT_SpinBox = QtGui.QDoubleSpinBox(self.groupBox)
self.newT_SpinBox.setGeometry(QtCore.QRect(80, 50, 111, 24))
self.newT_SpinBox.setKeyboardTracking(False)
self.newT_SpinBox.setDecimals(4)
self.newT_SpinBox.setMaximum(300.0)
self.newT_SpinBox.setSingleStep(0.001)
self.newT_SpinBox.setObjectName(_fromUtf8("newT_SpinBox"))
self.T_field = QtGui.QDoubleSpinBox(self.groupBox)
self.T_field.setGeometry(QtCore.QRect(80, 20, 91, 24))
self.T_field.setAutoFillBackground(False)
self.T_field.setFrame(False)
self.T_field.setReadOnly(True)
self.T_field.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
self.T_field.setDecimals(4)
self.T_field.setObjectName(_fromUtf8("T_field"))
self.R_field = QtGui.QDoubleSpinBox(self.groupBox)
self.R_field.setGeometry(QtCore.QRect(180, 20, 131, 24))
self.R_field.setFrame(False)
self.R_field.setReadOnly(True)
self.R_field.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
self.R_field.setDecimals(3)
self.R_field.setMaximum(10000000.0)
self.R_field.setObjectName(_fromUtf8("R_field"))
self.label_4 = QtGui.QLabel(self.groupBox)
self.label_4.setGeometry(QtCore.QRect(20, 20, 61, 20))
self.label_4.setObjectName(_fromUtf8("label_4"))
self.H_field = QtGui.QDoubleSpinBox(self.groupBox)
self.H_field.setGeometry(QtCore.QRect(330, 20, 121, 24))
self.H_field.setFrame(False)
self.H_field.setReadOnly(True)
self.H_field.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
self.H_field.setDecimals(4)
self.H_field.setObjectName(_fromUtf8("H_field"))
self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
self.groupBox_2.setGeometry(QtCore.QRect(10, 80, 451, 51))
self.groupBox_2.setFlat(False)
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.P_SpinBox = QtGui.QDoubleSpinBox(self.groupBox_2)
self.P_SpinBox.setGeometry(QtCore.QRect(30, 20, 121, 24))
self.P_SpinBox.setKeyboardTracking(False)
self.P_SpinBox.setDecimals(6)
self.P_SpinBox.setSingleStep(0.001)
self.P_SpinBox.setObjectName(_fromUtf8("P_SpinBox"))
self.I_SpinBox = QtGui.QDoubleSpinBox(self.groupBox_2)
self.I_SpinBox.setGeometry(QtCore.QRect(170, 20, 111, 24))
self.I_SpinBox.setKeyboardTracking(False)
self.I_SpinBox.setDecimals(6)
self.I_SpinBox.setSingleStep(0.001)
self.I_SpinBox.setObjectName(_fromUtf8("I_SpinBox"))
self.D_SpinBox = QtGui.QDoubleSpinBox(self.groupBox_2)
self.D_SpinBox.setGeometry(QtCore.QRect(320, 20, 101, 24))
self.D_SpinBox.setKeyboardTracking(False)
self.D_SpinBox.setDecimals(6)
self.D_SpinBox.setSingleStep(0.001)
self.D_SpinBox.setObjectName(_fromUtf8("D_SpinBox"))
self.Start = QtGui.QPushButton(self.centralwidget)
self.Start.setGeometry(QtCore.QRect(460, 100, 61, 31))
self.Start.setCheckable(True)
self.Start.setAutoDefault(False)
self.Start.setDefault(False)
self.Start.setFlat(False)
self.Start.setObjectName(_fromUtf8("Start"))
self.splitter = QtGui.QSplitter(self.centralwidget)
self.splitter.setGeometry(QtCore.QRect(10, 140, 561, 541))
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setObjectName(_fromUtf8("splitter"))
self.Temp_view = PlotWidget(self.splitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Temp_view.sizePolicy().hasHeightForWidth())
self.Temp_view.setSizePolicy(sizePolicy)
self.Temp_view.setObjectName(_fromUtf8("Temp_view"))
self.Heat_view = PlotWidget(self.splitter)
self.Heat_view.setObjectName(_fromUtf8("Heat_view"))
#.........这里部分代码省略.........
示例4: Ui_FreeIMUCal
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_FreeIMUCal(object):
def setupUi(self, FreeIMUCal):
FreeIMUCal.setObjectName(_fromUtf8("FreeIMUCal"))
FreeIMUCal.resize(800, 680)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(FreeIMUCal.sizePolicy().hasHeightForWidth())
FreeIMUCal.setSizePolicy(sizePolicy)
FreeIMUCal.setMinimumSize(QtCore.QSize(800, 600))
FreeIMUCal.setMaximumSize(QtCore.QSize(800, 680))
FreeIMUCal.setDocumentMode(False)
self.centralwidget = QtGui.QWidget(FreeIMUCal)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.line = QtGui.QFrame(self.centralwidget)
self.line.setGeometry(QtCore.QRect(10, 20, 791, 16))
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(0, 30, 801, 631))
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.uncalibratedTab = QtGui.QWidget()
self.uncalibratedTab.setObjectName(_fromUtf8("uncalibratedTab"))
self.gridLayoutWidget_4 = QtGui.QWidget(self.uncalibratedTab)
self.gridLayoutWidget_4.setGeometry(QtCore.QRect(0, 10, 791, 588))
self.gridLayoutWidget_4.setObjectName(_fromUtf8("gridLayoutWidget_4"))
self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4)
self.gridLayout_4.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
self.gridLayout_4.setMargin(0)
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
self.gridLayout_5 = QtGui.QGridLayout()
self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
self.label_2 = QtGui.QLabel(self.gridLayoutWidget_4)
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.gridLayout_5.addWidget(self.label_2, 0, 1, 1, 1)
self.accYZ = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accYZ.sizePolicy().hasHeightForWidth())
self.accYZ.setSizePolicy(sizePolicy)
self.accYZ.setObjectName(_fromUtf8("accYZ"))
self.gridLayout_5.addWidget(self.accYZ, 1, 0, 1, 1)
self.accZX = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accZX.sizePolicy().hasHeightForWidth())
self.accZX.setSizePolicy(sizePolicy)
self.accZX.setObjectName(_fromUtf8("accZX"))
self.gridLayout_5.addWidget(self.accZX, 1, 1, 1, 1)
self.accXY = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.accXY.sizePolicy().hasHeightForWidth())
self.accXY.setSizePolicy(sizePolicy)
self.accXY.setObjectName(_fromUtf8("accXY"))
self.gridLayout_5.addWidget(self.accXY, 0, 0, 1, 1)
self.gridLayout_4.addLayout(self.gridLayout_5, 1, 0, 1, 1)
self.gridLayout_3 = QtGui.QGridLayout()
self.gridLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
self.magnXY = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnXY.sizePolicy().hasHeightForWidth())
self.magnXY.setSizePolicy(sizePolicy)
self.magnXY.setObjectName(_fromUtf8("magnXY"))
self.gridLayout_3.addWidget(self.magnXY, 0, 0, 1, 1)
self.magnYZ = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnYZ.sizePolicy().hasHeightForWidth())
self.magnYZ.setSizePolicy(sizePolicy)
self.magnYZ.setObjectName(_fromUtf8("magnYZ"))
self.gridLayout_3.addWidget(self.magnYZ, 1, 0, 1, 1)
self.magnZX = PlotWidget(self.gridLayoutWidget_4)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.magnZX.sizePolicy().hasHeightForWidth())
self.magnZX.setSizePolicy(sizePolicy)
self.magnZX.setObjectName(_fromUtf8("magnZX"))
self.gridLayout_3.addWidget(self.magnZX, 1, 1, 1, 1)
self.label_3 = QtGui.QLabel(self.gridLayoutWidget_4)
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.gridLayout_3.addWidget(self.label_3, 0, 1, 1, 1)
self.gridLayout_4.addLayout(self.gridLayout_3, 1, 2, 1, 1)
self.magn3D = GLViewWidget(self.gridLayoutWidget_4)
#.........这里部分代码省略.........
示例5: Ui_HitFinding
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_HitFinding(object):
def setupUi(self, HitFinding):
HitFinding.setObjectName(_fromUtf8("HitFinding"))
HitFinding.resize(622, 817)
#HitFinding.setFrameShape(QtGui.QFrame.StyledPanel)
#HitFinding.setFrameShadow(QtGui.QFrame.Raised)
self.HitRateView = PlotWidget(HitFinding)
self.HitRateView.setGeometry(QtCore.QRect(20, 20, 590, 400))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.HitRateView.sizePolicy().hasHeightForWidth())
self.HitRateView.setSizePolicy(sizePolicy)
self.HitRateView.setMinimumSize(QtCore.QSize(590, 400))
self.HitRateView.setMaximumSize(QtCore.QSize(590, 400))
self.HitRateView.setSizeIncrement(QtCore.QSize(1, 1))
self.HitRateView.setObjectName(_fromUtf8("HitRateView"))
self.groupBox_4 = QtGui.QGroupBox(HitFinding)
self.groupBox_4.setGeometry(QtCore.QRect(20, 430, 581, 221))
self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
self.label_24 = QtGui.QLabel(self.groupBox_4)
self.label_24.setGeometry(QtCore.QRect(444, 71, 17, 21))
self.label_24.setObjectName(_fromUtf8("label_24"))
self.label_25 = QtGui.QLabel(self.groupBox_4)
self.label_25.setGeometry(QtCore.QRect(444, 40, 17, 21))
self.label_25.setObjectName(_fromUtf8("label_25"))
self.ROIX1 = QtGui.QLineEdit(self.groupBox_4)
self.ROIX1.setGeometry(QtCore.QRect(359, 40, 75, 21))
self.ROIX1.setObjectName(_fromUtf8("ROIX1"))
self.label_26 = QtGui.QLabel(self.groupBox_4)
self.label_26.setGeometry(QtCore.QRect(326, 71, 25, 21))
self.label_26.setObjectName(_fromUtf8("label_26"))
self.ROIX2 = QtGui.QLineEdit(self.groupBox_4)
self.ROIX2.setGeometry(QtCore.QRect(359, 71, 75, 21))
self.ROIX2.setObjectName(_fromUtf8("ROIX2"))
self.ROIY2 = QtGui.QLineEdit(self.groupBox_4)
self.ROIY2.setGeometry(QtCore.QRect(471, 71, 76, 21))
self.ROIY2.setObjectName(_fromUtf8("ROIY2"))
self.ROIY1 = QtGui.QLineEdit(self.groupBox_4)
self.ROIY1.setGeometry(QtCore.QRect(471, 40, 76, 21))
self.ROIY1.setObjectName(_fromUtf8("ROIY1"))
self.label_27 = QtGui.QLabel(self.groupBox_4)
self.label_27.setGeometry(QtCore.QRect(326, 40, 25, 21))
self.label_27.setObjectName(_fromUtf8("label_27"))
self.label_28 = QtGui.QLabel(self.groupBox_4)
self.label_28.setGeometry(QtCore.QRect(290, 40, 26, 21))
self.label_28.setObjectName(_fromUtf8("label_28"))
self.UpdateROI = QtGui.QPushButton(self.groupBox_4)
self.UpdateROI.setGeometry(QtCore.QRect(330, 100, 221, 32))
self.UpdateROI.setObjectName(_fromUtf8("UpdateROI"))
self.npix = QtGui.QLineEdit(self.groupBox_4)
self.npix.setGeometry(QtCore.QRect(100, 70, 51, 21))
self.npix.setObjectName(_fromUtf8("npix"))
self.label_22 = QtGui.QLabel(self.groupBox_4)
self.label_22.setGeometry(QtCore.QRect(30, 39, 61, 21))
self.label_22.setObjectName(_fromUtf8("label_22"))
self.thresh = QtGui.QLineEdit(self.groupBox_4)
self.thresh.setGeometry(QtCore.QRect(99, 39, 51, 21))
self.thresh.setObjectName(_fromUtf8("thresh"))
self.label_21 = QtGui.QLabel(self.groupBox_4)
self.label_21.setGeometry(QtCore.QRect(30, 70, 61, 21))
self.label_21.setObjectName(_fromUtf8("label_21"))
self.clearHitRate = QtGui.QPushButton(self.groupBox_4)
self.clearHitRate.setGeometry(QtCore.QRect(180, 180, 221, 32))
self.clearHitRate.setObjectName(_fromUtf8("clearHitRate"))
self.label_23 = QtGui.QLabel(self.groupBox_4)
self.label_23.setGeometry(QtCore.QRect(30, 100, 61, 21))
self.label_23.setObjectName(_fromUtf8("label_23"))
self.ncpus = QtGui.QLineEdit(self.groupBox_4)
self.ncpus.setGeometry(QtCore.QRect(100, 100, 51, 21))
self.ncpus.setObjectName(_fromUtf8("ncpus"))
self.ShowROI = QtGui.QPushButton(self.groupBox_4)
self.ShowROI.setGeometry(QtCore.QRect(330, 130, 221, 32))
self.ShowROI.setObjectName(_fromUtf8("ShowROI"))
self.HitLog = QtGui.QPlainTextEdit(HitFinding)
self.HitLog.setGeometry(QtCore.QRect(20, 660, 581, 141))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Courier New"))
font.setPointSize(10)
self.HitLog.setFont(font)
self.HitLog.setObjectName(_fromUtf8("HitLog"))
self.retranslateUi(HitFinding)
QtCore.QMetaObject.connectSlotsByName(HitFinding)
def retranslateUi(self, HitFinding):
HitFinding.setWindowTitle(_translate("HitFinding", "Frame", None))
self.groupBox_4.setTitle(_translate("HitFinding", "Hit Finding", None))
self.label_24.setText(_translate("HitFinding", "Y2", None))
self.label_25.setText(_translate("HitFinding", "Y1", None))
self.ROIX1.setText(_translate("HitFinding", "0", None))
self.label_26.setText(_translate("HitFinding", "X2", None))
self.ROIX2.setText(_translate("HitFinding", "2167", None))
self.ROIY2.setText(_translate("HitFinding", "2070", None))
self.ROIY1.setText(_translate("HitFinding", "0", None))
self.label_27.setText(_translate("HitFinding", "X1", None))
self.label_28.setText(_translate("HitFinding", "ROI", None))
self.UpdateROI.setText(_translate("HitFinding", "Update ROI", None))
self.npix.setText(_translate("HitFinding", "10", None))
self.label_22.setText(_translate("HitFinding", "Threshold", None))
#.........这里部分代码省略.........
示例6: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.setEnabled(True)
MainWindow.resize(1350, 755)
MainWindow.setMinimumSize(QtCore.QSize(1024, 700))
self.centralwidget = QtGui.QWidget(MainWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout_13 = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13"))
self.verticalLayout_5 = QtGui.QVBoxLayout()
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.horizontalLayout_6 = QtGui.QHBoxLayout()
self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
self.select_folder_button = QtGui.QPushButton(self.centralwidget)
self.select_folder_button.setMaximumSize(QtCore.QSize(150, 50))
font = QtGui.QFont()
font.setPointSize(9)
self.select_folder_button.setFont(font)
self.select_folder_button.setObjectName(_fromUtf8("select_folder_button"))
self.horizontalLayout_6.addWidget(self.select_folder_button)
self.reset_view_button = QtGui.QPushButton(self.centralwidget)
self.reset_view_button.setObjectName(_fromUtf8("reset_view_button"))
self.horizontalLayout_6.addWidget(self.reset_view_button)
spacerItem = QtGui.QSpacerItem(20, 24, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem)
self.line_3 = QtGui.QFrame(self.centralwidget)
self.line_3.setFrameShape(QtGui.QFrame.VLine)
self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
self.line_3.setObjectName(_fromUtf8("line_3"))
self.horizontalLayout_6.addWidget(self.line_3)
spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem1)
self.tt_times = QtGui.QCheckBox(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(9)
self.tt_times.setFont(font)
self.tt_times.setObjectName(_fromUtf8("tt_times"))
self.horizontalLayout_6.addWidget(self.tt_times)
spacerItem2 = QtGui.QSpacerItem(20, 24, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem2)
self.line_6 = QtGui.QFrame(self.centralwidget)
self.line_6.setFrameShape(QtGui.QFrame.VLine)
self.line_6.setFrameShadow(QtGui.QFrame.Sunken)
self.line_6.setObjectName(_fromUtf8("line_6"))
self.horizontalLayout_6.addWidget(self.line_6)
spacerItem3 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem3)
self.lowpass_check_box = QtGui.QCheckBox(self.centralwidget)
self.lowpass_check_box.setEnabled(True)
font = QtGui.QFont()
font.setPointSize(9)
self.lowpass_check_box.setFont(font)
self.lowpass_check_box.setChecked(False)
self.lowpass_check_box.setTristate(False)
self.lowpass_check_box.setObjectName(_fromUtf8("lowpass_check_box"))
self.horizontalLayout_6.addWidget(self.lowpass_check_box)
self.lowpass_period = QtGui.QDoubleSpinBox(self.centralwidget)
self.lowpass_period.setEnabled(False)
self.lowpass_period.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lowpass_period.setDecimals(1)
self.lowpass_period.setMinimum(0.0)
self.lowpass_period.setMaximum(1000.0)
self.lowpass_period.setProperty("value", 5.0)
self.lowpass_period.setObjectName(_fromUtf8("lowpass_period"))
self.horizontalLayout_6.addWidget(self.lowpass_period)
self.lowpass_label = QtGui.QLabel(self.centralwidget)
self.lowpass_label.setEnabled(False)
font = QtGui.QFont()
font.setPointSize(9)
self.lowpass_label.setFont(font)
self.lowpass_label.setObjectName(_fromUtf8("lowpass_label"))
self.horizontalLayout_6.addWidget(self.lowpass_label)
self.highpass_check_box = QtGui.QCheckBox(self.centralwidget)
self.highpass_check_box.setEnabled(True)
font = QtGui.QFont()
font.setPointSize(9)
self.highpass_check_box.setFont(font)
self.highpass_check_box.setChecked(False)
self.highpass_check_box.setTristate(False)
self.highpass_check_box.setObjectName(_fromUtf8("highpass_check_box"))
self.horizontalLayout_6.addWidget(self.highpass_check_box)
self.highpass_period = QtGui.QDoubleSpinBox(self.centralwidget)
self.highpass_period.setEnabled(False)
self.highpass_period.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.highpass_period.setDecimals(1)
self.highpass_period.setMinimum(0.0)
self.highpass_period.setMaximum(1000.0)
self.highpass_period.setProperty("value", 50.0)
self.highpass_period.setObjectName(_fromUtf8("highpass_period"))
self.horizontalLayout_6.addWidget(self.highpass_period)
self.highpass_label = QtGui.QLabel(self.centralwidget)
self.highpass_label.setEnabled(False)
font = QtGui.QFont()
font.setPointSize(9)
#.........这里部分代码省略.........
示例7: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1038, 680)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
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.setMinimumSize(QtCore.QSize(0, 0))
self.centralwidget.setMaximumSize(QtCore.QSize(1024, 768))
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.splitter = QtGui.QSplitter(self.centralwidget)
self.splitter.setMinimumSize(QtCore.QSize(1004, 367))
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName(_fromUtf8("splitter"))
self.layoutWidget = QtGui.QWidget(self.splitter)
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.label = QtGui.QLabel(self.layoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Tahoma"))
font.setPointSize(10)
self.label.setFont(font)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout.addWidget(self.label)
self.textEditTerminal = QtGui.QTextEdit(self.layoutWidget)
self.textEditTerminal.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.textEditTerminal.sizePolicy().hasHeightForWidth())
self.textEditTerminal.setSizePolicy(sizePolicy)
self.textEditTerminal.setMinimumSize(QtCore.QSize(256, 315))
self.textEditTerminal.setObjectName(_fromUtf8("textEditTerminal"))
self.verticalLayout.addWidget(self.textEditTerminal)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setSpacing(10)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.btnClear = QtGui.QPushButton(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btnClear.sizePolicy().hasHeightForWidth())
self.btnClear.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Tahoma"))
font.setPointSize(10)
self.btnClear.setFont(font)
self.btnClear.setObjectName(_fromUtf8("btnClear"))
self.horizontalLayout_2.addWidget(self.btnClear)
self.btnPlot = QtGui.QPushButton(self.layoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Tahoma"))
font.setPointSize(10)
self.btnPlot.setFont(font)
self.btnPlot.setObjectName(_fromUtf8("btnPlot"))
self.horizontalLayout_2.addWidget(self.btnPlot)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.dataView = PlotWidget(self.splitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(5)
sizePolicy.setVerticalStretch(5)
sizePolicy.setHeightForWidth(self.dataView.sizePolicy().hasHeightForWidth())
self.dataView.setSizePolicy(sizePolicy)
self.dataView.setMinimumSize(QtCore.QSize(741, 371))
self.dataView.setResizeAnchor(QtGui.QGraphicsView.NoAnchor)
self.dataView.setObjectName(_fromUtf8("dataView"))
self.verticalLayout_2.addWidget(self.splitter)
self.line = QtGui.QFrame(self.centralwidget)
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.verticalLayout_2.addWidget(self.line)
self.tabControl = QtGui.QTabWidget(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tabControl.sizePolicy().hasHeightForWidth())
self.tabControl.setSizePolicy(sizePolicy)
self.tabControl.setMinimumSize(QtCore.QSize(1000, 200))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Tahoma"))
font.setPointSize(10)
self.tabControl.setFont(font)
self.tabControl.setTabShape(QtGui.QTabWidget.Triangular)
self.tabControl.setObjectName(_fromUtf8("tabControl"))
self.tabCmd = QtGui.QWidget()
#.........这里部分代码省略.........
示例8: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1785, 1186)
MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.French, QtCore.QLocale.France))
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayoutWidget_2 = QtGui.QWidget(self.centralwidget)
self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(450, 10, 1321, 1141))
self.verticalLayoutWidget_2.setObjectName(_fromUtf8("verticalLayoutWidget_2"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
self.verticalLayout_2.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.imageView = ImageView(self.verticalLayoutWidget_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.imageView.sizePolicy().hasHeightForWidth())
self.imageView.setSizePolicy(sizePolicy)
self.imageView.setObjectName(_fromUtf8("imageView"))
self.verticalLayout_2.addWidget(self.imageView)
self.verticalLayoutWidget_3 = QtGui.QWidget(self.centralwidget)
self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 720, 431, 431))
self.verticalLayoutWidget_3.setObjectName(_fromUtf8("verticalLayoutWidget_3"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.plotView = PlotWidget(self.verticalLayoutWidget_3)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plotView.sizePolicy().hasHeightForWidth())
self.plotView.setSizePolicy(sizePolicy)
self.plotView.setObjectName(_fromUtf8("plotView"))
self.verticalLayout_3.addWidget(self.plotView)
self.labelFileName = QtGui.QLabel(self.centralwidget)
self.labelFileName.setGeometry(QtCore.QRect(10, 588, 91, 21))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Calibri"))
font.setPointSize(14)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.labelFileName.setFont(font)
self.labelFileName.setTextFormat(QtCore.Qt.AutoText)
self.labelFileName.setObjectName(_fromUtf8("labelFileName"))
self.chooseWorkDirectoryBtn = QtGui.QPushButton(self.centralwidget)
self.chooseWorkDirectoryBtn.setGeometry(QtCore.QRect(120, 55, 215, 45))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Cambria"))
font.setPointSize(12)
self.chooseWorkDirectoryBtn.setFont(font)
self.chooseWorkDirectoryBtn.setAutoFillBackground(True)
self.chooseWorkDirectoryBtn.setObjectName(_fromUtf8("chooseWorkDirectoryBtn"))
self.verticalLayoutWidget = QtGui.QWidget(self.centralwidget)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(20, 155, 211, 191))
self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.load1FileBtn = QtGui.QPushButton(self.verticalLayoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Cambria"))
font.setPointSize(12)
self.load1FileBtn.setFont(font)
self.load1FileBtn.setObjectName(_fromUtf8("load1FileBtn"))
self.verticalLayout_5.addWidget(self.load1FileBtn)
self.load2FilesBtn = QtGui.QPushButton(self.verticalLayoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Cambria"))
font.setPointSize(12)
self.load2FilesBtn.setFont(font)
self.load2FilesBtn.setObjectName(_fromUtf8("load2FilesBtn"))
self.verticalLayout_5.addWidget(self.load2FilesBtn)
self.load4FilesBtn = QtGui.QPushButton(self.verticalLayoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Cambria"))
font.setPointSize(12)
self.load4FilesBtn.setFont(font)
self.load4FilesBtn.setObjectName(_fromUtf8("load4FilesBtn"))
self.verticalLayout_5.addWidget(self.load4FilesBtn)
self.showTIFFStackBtn = QtGui.QPushButton(self.verticalLayoutWidget)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 252, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 254, 127))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 253, 63))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
brush = QtGui.QBrush(QtGui.QColor(127, 126, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
brush = QtGui.QBrush(QtGui.QColor(170, 168, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
#.........这里部分代码省略.........
示例9: Ui_tabWidget
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_tabWidget(object):
def setupUi(self, tabWidget):
tabWidget.setObjectName(_fromUtf8("tabWidget"))
tabWidget.resize(1090, 745)
self.configTab = QtGui.QWidget()
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.configTab.sizePolicy().hasHeightForWidth())
self.configTab.setSizePolicy(sizePolicy)
self.configTab.setObjectName(_fromUtf8("configTab"))
self.gridLayout_2 = QtGui.QGridLayout(self.configTab)
self.gridLayout_2.setMargin(0)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.splitter_2 = QtGui.QSplitter(self.configTab)
self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
self.flowchartCtrlWidget = QtGui.QWidget(self.splitter_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.flowchartCtrlWidget.sizePolicy().hasHeightForWidth())
self.flowchartCtrlWidget.setSizePolicy(sizePolicy)
self.flowchartCtrlWidget.setObjectName(_fromUtf8("flowchartCtrlWidget"))
self.verticalLayout_4 = QtGui.QVBoxLayout(self.flowchartCtrlWidget)
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setMargin(0)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.parametersLabel = QtGui.QLabel(self.flowchartCtrlWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.parametersLabel.sizePolicy().hasHeightForWidth())
self.parametersLabel.setSizePolicy(sizePolicy)
self.parametersLabel.setAlignment(QtCore.Qt.AlignCenter)
self.parametersLabel.setObjectName(_fromUtf8("parametersLabel"))
self.verticalLayout_4.addWidget(self.parametersLabel)
self.widget_4 = QtGui.QWidget(self.flowchartCtrlWidget)
self.widget_4.setObjectName(_fromUtf8("widget_4"))
self.verticalLayout_4.addWidget(self.widget_4)
self.flowchartWidget = QtGui.QWidget(self.splitter_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(2)
sizePolicy.setVerticalStretch(8)
sizePolicy.setHeightForWidth(self.flowchartWidget.sizePolicy().hasHeightForWidth())
self.flowchartWidget.setSizePolicy(sizePolicy)
self.flowchartWidget.setObjectName(_fromUtf8("flowchartWidget"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.flowchartWidget)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setMargin(0)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.netFlowchartLabel = QtGui.QLabel(self.flowchartWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.netFlowchartLabel.sizePolicy().hasHeightForWidth())
self.netFlowchartLabel.setSizePolicy(sizePolicy)
self.netFlowchartLabel.setAlignment(QtCore.Qt.AlignCenter)
self.netFlowchartLabel.setObjectName(_fromUtf8("netFlowchartLabel"))
self.verticalLayout_5.addWidget(self.netFlowchartLabel)
self.widget_5 = QtGui.QWidget(self.flowchartWidget)
self.widget_5.setObjectName(_fromUtf8("widget_5"))
self.verticalLayout_5.addWidget(self.widget_5)
self.gridLayout_2.addWidget(self.splitter_2, 0, 0, 1, 1)
tabWidget.addTab(self.configTab, _fromUtf8(""))
self.trainTab = QtGui.QWidget()
self.trainTab.setObjectName(_fromUtf8("trainTab"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.trainTab)
self.horizontalLayout_2.setMargin(0)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.controlBox = QtGui.QGroupBox(self.trainTab)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(2)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.controlBox.sizePolicy().hasHeightForWidth())
self.controlBox.setSizePolicy(sizePolicy)
self.controlBox.setAlignment(QtCore.Qt.AlignCenter)
self.controlBox.setObjectName(_fromUtf8("controlBox"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.controlBox)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.trainButton = QtGui.QPushButton(self.controlBox)
self.trainButton.setObjectName(_fromUtf8("trainButton"))
self.horizontalLayout_3.addWidget(self.trainButton)
self.stopButton = QtGui.QPushButton(self.controlBox)
self.stopButton.setObjectName(_fromUtf8("stopButton"))
self.horizontalLayout_3.addWidget(self.stopButton)
self.resumeButton = QtGui.QPushButton(self.controlBox)
self.resumeButton.setObjectName(_fromUtf8("resumeButton"))
self.horizontalLayout_3.addWidget(self.resumeButton)
self.loadSolverButton = QtGui.QPushButton(self.controlBox)
self.loadSolverButton.setObjectName(_fromUtf8("loadSolverButton"))
self.horizontalLayout_3.addWidget(self.loadSolverButton)
self.saveSolverButton = QtGui.QPushButton(self.controlBox)
self.saveSolverButton.setObjectName(_fromUtf8("saveSolverButton"))
self.horizontalLayout_3.addWidget(self.saveSolverButton)
self.gridLayout.addWidget(self.controlBox, 1, 1, 1, 1)
self.trainParamTree = ParameterTree(self.trainTab)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
#.........这里部分代码省略.........
示例10: Ui_lasagna_mainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
class Ui_lasagna_mainWindow(object):
def setupUi(self, lasagna_mainWindow):
lasagna_mainWindow.setObjectName(_fromUtf8("lasagna_mainWindow"))
lasagna_mainWindow.resize(1002, 795)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(lasagna_mainWindow.sizePolicy().hasHeightForWidth())
lasagna_mainWindow.setSizePolicy(sizePolicy)
lasagna_mainWindow.setMinimumSize(QtCore.QSize(540, 540))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/icons/lasagna_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.On)
lasagna_mainWindow.setWindowIcon(icon)
self.centralwidget = QtGui.QWidget(lasagna_mainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.splitter_3 = QtGui.QSplitter(self.centralwidget)
self.splitter_3.setOrientation(QtCore.Qt.Vertical)
self.splitter_3.setObjectName(_fromUtf8("splitter_3"))
self.splitter = QtGui.QSplitter(self.splitter_3)
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName(_fromUtf8("splitter"))
self.graphicsView_1 = LasagnaPlotWidget(self.splitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graphicsView_1.sizePolicy().hasHeightForWidth())
self.graphicsView_1.setSizePolicy(sizePolicy)
self.graphicsView_1.setObjectName(_fromUtf8("graphicsView_1"))
self.graphicsView_2 = LasagnaPlotWidget(self.splitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graphicsView_2.sizePolicy().hasHeightForWidth())
self.graphicsView_2.setSizePolicy(sizePolicy)
self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
self.splitter_2 = QtGui.QSplitter(self.splitter_3)
self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
self.graphicsView_3 = LasagnaPlotWidget(self.splitter_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graphicsView_3.sizePolicy().hasHeightForWidth())
self.graphicsView_3.setSizePolicy(sizePolicy)
self.graphicsView_3.setObjectName(_fromUtf8("graphicsView_3"))
self.frame_2 = QtGui.QFrame(self.splitter_2)
self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
self.frame_2.setObjectName(_fromUtf8("frame_2"))
self.gridLayout.addWidget(self.splitter_3, 0, 0, 1, 1)
lasagna_mainWindow.setCentralWidget(self.centralwidget)
self.menuBar = QtGui.QMenuBar(lasagna_mainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 1002, 27))
self.menuBar.setObjectName(_fromUtf8("menuBar"))
self.menuFile = QtGui.QMenu(self.menuBar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
self.menuOpen_recent = QtGui.QMenu(self.menuFile)
self.menuOpen_recent.setObjectName(_fromUtf8("menuOpen_recent"))
self.menuLoad_ingredient = QtGui.QMenu(self.menuFile)
self.menuLoad_ingredient.setObjectName(_fromUtf8("menuLoad_ingredient"))
self.menuHelp = QtGui.QMenu(self.menuBar)
self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
self.menuPlugins = QtGui.QMenu(self.menuBar)
self.menuPlugins.setObjectName(_fromUtf8("menuPlugins"))
lasagna_mainWindow.setMenuBar(self.menuBar)
self.mainDockWidget = QtGui.QDockWidget(lasagna_mainWindow)
self.mainDockWidget.setMinimumSize(QtCore.QSize(331, 587))
self.mainDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
self.mainDockWidget.setObjectName(_fromUtf8("mainDockWidget"))
self.dockWidgetContents = QtGui.QWidget()
self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.dockWidgetContents)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.tabWidget = QtGui.QTabWidget(self.dockWidgetContents)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.imageSettingsTab = QtGui.QWidget()
self.imageSettingsTab.setObjectName(_fromUtf8("imageSettingsTab"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.imageSettingsTab)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.intensityHistogram = PlotWidget(self.imageSettingsTab)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.intensityHistogram.sizePolicy().hasHeightForWidth())
self.intensityHistogram.setSizePolicy(sizePolicy)
self.intensityHistogram.setMinimumSize(QtCore.QSize(0, 180))
self.intensityHistogram.setMaximumSize(QtCore.QSize(16777215, 180))
self.intensityHistogram.setObjectName(_fromUtf8("intensityHistogram"))
self.verticalLayout_3.addWidget(self.intensityHistogram)
self.horizontalLayout_13 = QtGui.QHBoxLayout()
self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13"))
self.logYcheckBox = QtGui.QCheckBox(self.imageSettingsTab)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.logYcheckBox.sizePolicy().hasHeightForWidth())
self.logYcheckBox.setSizePolicy(sizePolicy)
self.logYcheckBox.setMaximumSize(QtCore.QSize(16777215, 21))
#.........这里部分代码省略.........
示例11: Ui_Form
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import sizePolicy [as 别名]
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))
#.........这里部分代码省略.........