本文整理汇总了Python中pyqtgraph.PlotWidget.setMinimumSize方法的典型用法代码示例。如果您正苦于以下问题:Python PlotWidget.setMinimumSize方法的具体用法?Python PlotWidget.setMinimumSize怎么用?Python PlotWidget.setMinimumSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqtgraph.PlotWidget
的用法示例。
在下文中一共展示了PlotWidget.setMinimumSize方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_EveAnalyze
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [as 别名]
class Ui_EveAnalyze(object):
def setupUi(self, EveAnalyze):
EveAnalyze.setObjectName(_fromUtf8("reVEmind"))
EveAnalyze.resize(1102, 757)
EveAnalyze.setMinimumSize(QtCore.QSize(1054, 757))
self.centralwidget = QtGui.QWidget(EveAnalyze)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.frame = QtGui.QFrame(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
self.frame.setSizePolicy(sizePolicy)
self.frame.setObjectName(_fromUtf8("frame"))
self.verticalLayout = QtGui.QVBoxLayout(self.frame)
self.verticalLayout.setSpacing(4)
self.verticalLayout.setContentsMargins(-1, -1, -1, 0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.logCalendar = QtGui.QCalendarWidget(self.frame)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.logCalendar.sizePolicy().hasHeightForWidth())
self.logCalendar.setSizePolicy(sizePolicy)
self.logCalendar.setMinimumSize(QtCore.QSize(290, 201))
self.logCalendar.setMaximumSize(QtCore.QSize(350, 229))
self.logCalendar.setAutoFillBackground(False)
self.logCalendar.setGridVisible(True)
self.logCalendar.setHorizontalHeaderFormat(QtGui.QCalendarWidget.SingleLetterDayNames)
self.logCalendar.setVerticalHeaderFormat(QtGui.QCalendarWidget.NoVerticalHeader)
self.logCalendar.setNavigationBarVisible(True)
self.logCalendar.setDateEditEnabled(True)
self.logCalendar.setObjectName(_fromUtf8("logCalendar"))
self.verticalLayout.addWidget(self.logCalendar)
self.pushButton = QtGui.QPushButton(self.frame)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.verticalLayout.addWidget(self.pushButton)
self.logfileList = QtGui.QListWidget(self.frame)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.logfileList.sizePolicy().hasHeightForWidth())
self.logfileList.setSizePolicy(sizePolicy)
self.logfileList.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.logfileList.setObjectName(_fromUtf8("logfileList"))
self.verticalLayout.addWidget(self.logfileList)
self.horizontalLayout_2.addWidget(self.frame)
self.verticalLayout_6 = QtGui.QVBoxLayout()
self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
self.splitter_3 = QtGui.QSplitter(self.centralwidget)
self.splitter_3.setOrientation(QtCore.Qt.Vertical)
self.splitter_3.setObjectName(_fromUtf8("splitter_3"))
self.splitter_2 = QtGui.QSplitter(self.splitter_3)
self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
self.layoutWidget = QtGui.QWidget(self.splitter_2)
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.layoutWidget)
self.verticalLayout_5.setMargin(0)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.loglineViewer = QtGui.QTableView(self.layoutWidget)
self.loglineViewer.setEnabled(True)
self.loglineViewer.setMinimumSize(QtCore.QSize(400, 0))
self.loglineViewer.setObjectName(_fromUtf8("loglineViewer"))
self.verticalLayout_5.addWidget(self.loglineViewer)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.dateTimeEdit = QtGui.QDateTimeEdit(self.layoutWidget)
self.dateTimeEdit.setObjectName(_fromUtf8("dateTimeEdit"))
self.horizontalLayout.addWidget(self.dateTimeEdit)
self.line = QtGui.QFrame(self.layoutWidget)
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.horizontalLayout.addWidget(self.line)
self.dateTimeEdit_2 = QtGui.QDateTimeEdit(self.layoutWidget)
self.dateTimeEdit_2.setObjectName(_fromUtf8("dateTimeEdit_2"))
self.horizontalLayout.addWidget(self.dateTimeEdit_2)
self.verticalLayout_5.addLayout(self.horizontalLayout)
self.splitter = QtGui.QSplitter(self.splitter_2)
self.splitter.setMinimumSize(QtCore.QSize(340, 0))
self.splitter.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.splitter.setAutoFillBackground(True)
self.splitter.setFrameShape(QtGui.QFrame.StyledPanel)
self.splitter.setFrameShadow(QtGui.QFrame.Raised)
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setObjectName(_fromUtf8("splitter"))
self.scrollArea = QtGui.QScrollArea(self.splitter)
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
self.scrollAreaWidgetContents_2 = QtGui.QWidget()
self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 336, 374))
self.scrollAreaWidgetContents_2.setObjectName(_fromUtf8("scrollAreaWidgetContents_2"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents_2)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.tabWidget = QtGui.QTabWidget(self.scrollAreaWidgetContents_2)
self.tabWidget.setMinimumSize(QtCore.QSize(0, 350))
self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
#.........这里部分代码省略.........
示例2: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(740, 463)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.label = QtGui.QLabel(self.centralwidget)
self.label.setMinimumSize(QtCore.QSize(67, 17))
self.label.setMaximumSize(QtCore.QSize(67, 17))
self.label.setSizeIncrement(QtCore.QSize(67, 17))
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout_2.addWidget(self.label)
self.comboPorts = QtGui.QComboBox(self.centralwidget)
self.comboPorts.setMinimumSize(QtCore.QSize(250, 25))
self.comboPorts.setMaximumSize(QtCore.QSize(250, 25))
self.comboPorts.setObjectName(_fromUtf8("comboPorts"))
self.comboPorts.addItem(_fromUtf8(""))
self.horizontalLayout_2.addWidget(self.comboPorts)
self.pushConectar = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushConectar.sizePolicy().hasHeightForWidth())
self.pushConectar.setSizePolicy(sizePolicy)
self.pushConectar.setMinimumSize(QtCore.QSize(100, 25))
self.pushConectar.setMaximumSize(QtCore.QSize(100, 25))
self.pushConectar.setSizeIncrement(QtCore.QSize(80, 0))
self.pushConectar.setObjectName(_fromUtf8("pushConectar"))
self.horizontalLayout_2.addWidget(self.pushConectar)
spacerItem = QtGui.QSpacerItem(13, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.label_3 = QtGui.QLabel(self.centralwidget)
self.label_3.setMinimumSize(QtCore.QSize(60, 23))
self.label_3.setSizeIncrement(QtCore.QSize(60, 23))
self.label_3.setObjectName(_fromUtf8("label_3"))
self.horizontalLayout.addWidget(self.label_3)
self.checkBox_datos = QtGui.QCheckBox(self.centralwidget)
self.checkBox_datos.setEnabled(False)
self.checkBox_datos.setMinimumSize(QtCore.QSize(50, 23))
self.checkBox_datos.setMaximumSize(QtCore.QSize(50, 23))
self.checkBox_datos.setObjectName(_fromUtf8("checkBox_datos"))
self.horizontalLayout.addWidget(self.checkBox_datos)
self.checkBox_error = QtGui.QCheckBox(self.centralwidget)
self.checkBox_error.setEnabled(False)
self.checkBox_error.setMinimumSize(QtCore.QSize(50, 23))
self.checkBox_error.setMaximumSize(QtCore.QSize(50, 23))
self.checkBox_error.setObjectName(_fromUtf8("checkBox_error"))
self.horizontalLayout.addWidget(self.checkBox_error)
self.checkBox_pid = QtGui.QCheckBox(self.centralwidget)
self.checkBox_pid.setEnabled(False)
self.checkBox_pid.setMinimumSize(QtCore.QSize(70, 23))
self.checkBox_pid.setMaximumSize(QtCore.QSize(70, 23))
self.checkBox_pid.setObjectName(_fromUtf8("checkBox_pid"))
self.horizontalLayout.addWidget(self.checkBox_pid)
self.checkBox_patron = QtGui.QCheckBox(self.centralwidget)
self.checkBox_patron.setEnabled(False)
self.checkBox_patron.setMinimumSize(QtCore.QSize(120, 23))
self.checkBox_patron.setMaximumSize(QtCore.QSize(120, 23))
self.checkBox_patron.setObjectName(_fromUtf8("checkBox_patron"))
self.horizontalLayout.addWidget(self.checkBox_patron)
spacerItem1 = QtGui.QSpacerItem(138, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.verticalLayout.addLayout(self.horizontalLayout)
self.plot_1 = PlotWidget(self.centralwidget)
self.plot_1.setMinimumSize(QtCore.QSize(720, 360))
self.plot_1.setObjectName(_fromUtf8("plot_1"))
self.verticalLayout.addWidget(self.plot_1)
MainWindow.setCentralWidget(self.centralwidget)
self.menuBar = QtGui.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 740, 21))
self.menuBar.setObjectName(_fromUtf8("menuBar"))
self.menuArchivo = QtGui.QMenu(self.menuBar)
self.menuArchivo.setObjectName(_fromUtf8("menuArchivo"))
self.menuAyuda = QtGui.QMenu(self.menuBar)
self.menuAyuda.setObjectName(_fromUtf8("menuAyuda"))
MainWindow.setMenuBar(self.menuBar)
self.actionConfiguraci_n = QtGui.QAction(MainWindow)
self.actionConfiguraci_n.setObjectName(_fromUtf8("actionConfiguraci_n"))
self.actionNinguno = QtGui.QAction(MainWindow)
self.actionNinguno.setCheckable(False)
self.actionNinguno.setEnabled(True)
self.actionNinguno.setObjectName(_fromUtf8("actionNinguno"))
self.actionSearchPorts = QtGui.QAction(MainWindow)
self.actionSearchPorts.setCheckable(False)
self.actionSearchPorts.setObjectName(_fromUtf8("actionSearchPorts"))
self.actionConectar_dispositivo = QtGui.QAction(MainWindow)
self.actionConectar_dispositivo.setObjectName(_fromUtf8("actionConectar_dispositivo"))
self.actionAbout = QtGui.QAction(MainWindow)
self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
self.actionContenido = QtGui.QAction(MainWindow)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8("Assets/Help_mark_query_question_support-512.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
#.........这里部分代码省略.........
示例3: Ui_MainWidget
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [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"))
#.........这里部分代码省略.........
示例4: Ui_HitFinding
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [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))
#.........这里部分代码省略.........
示例5: Ui_Form
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [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)
#.........这里部分代码省略.........
示例6: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [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()
#.........这里部分代码省略.........
示例7: stc_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [as 别名]
class stc_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(916, 609)
MainWindow.setMinimumSize(QtCore.QSize(916, 609))
MainWindow.setMaximumSize(QtCore.QSize(916, 609))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(QtCore.QDir().currentPath()+"/logo/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.groupBox = QtGui.QGroupBox(self.centralwidget)
self.groupBox.setGeometry(QtCore.QRect(10, 320, 211, 131))
self.groupBox.setObjectName("groupBox")
self.pot_label = QtGui.QLabel(self.groupBox)
self.pot_label.setGeometry(QtCore.QRect(10, 30, 91, 31))
self.pot_label.setObjectName("pot_label")
self.pot_num = QtGui.QComboBox(self.groupBox)
self.pot_num.setGeometry(QtCore.QRect(110, 40, 69, 22))
self.pot_num.setObjectName("pot_num")
self.new_show = QtGui.QPushButton(self.groupBox)
self.new_show.setGeometry(QtCore.QRect(10, 80, 91, 31))
self.new_show.setObjectName("new_show")
self.on_show = QtGui.QPushButton(self.groupBox)
self.on_show.setGeometry(QtCore.QRect(110, 80, 91, 31))
self.on_show.setObjectName("on_show")
self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
self.groupBox_2.setGeometry(QtCore.QRect(10, 459, 211, 121))
self.groupBox_2.setObjectName("groupBox_2")
self.weekday = QtGui.QComboBox(self.groupBox_2)
self.weekday.setGeometry(QtCore.QRect(10, 30, 69, 22))
self.weekday.setObjectName("weekday")
self.spe_time = QtGui.QComboBox(self.groupBox_2)
self.spe_time.setGeometry(QtCore.QRect(110, 30, 69, 22))
self.spe_time.setObjectName("spe_time")
self.pushButton = QtGui.QPushButton(self.groupBox_2)
self.pushButton.setGeometry(QtCore.QRect(60, 60, 75, 23))
self.pushButton.setObjectName("pushButton")
self.label_2 = QtGui.QLabel(self.groupBox_2)
self.label_2.setGeometry(QtCore.QRect(20, 90, 141, 31))
self.label_2.setObjectName("label_2")
self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
self.groupBox_3.setGeometry(QtCore.QRect(10, 10, 211, 291))
self.groupBox_3.setObjectName("groupBox_3")
self.attr_list = QtGui.QListWidget(self.groupBox_3)
self.attr_list.setGeometry(QtCore.QRect(0, 20, 201, 261))
self.attr_list.setObjectName("attr_list")
self.groupBox_4 = QtGui.QGroupBox(self.centralwidget)
self.groupBox_4.setGeometry(QtCore.QRect(230, 0, 681, 581))
self.groupBox_4.setObjectName("groupBox_4")
self.curve_graphics = PlotWidget(self.groupBox_4)
self.curve_graphics.setGeometry(QtCore.QRect(10, 20, 661, 551))
self.curve_graphics.setMinimumSize(QtCore.QSize(661, 551))
self.curve_graphics.setMaximumSize(QtCore.QSize(661, 551))
self.curve_graphics.setObjectName("curve_graphics")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 916, 23))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "预测结果", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "展示其它窗口结果", None, QtGui.QApplication.UnicodeUTF8))
self.pot_label.setText(QtGui.QApplication.translate("MainWindow", " 选择窗口号:", None, QtGui.QApplication.UnicodeUTF8))
self.new_show.setText(QtGui.QApplication.translate("MainWindow", "单独显示", None, QtGui.QApplication.UnicodeUTF8))
self.on_show.setText(QtGui.QApplication.translate("MainWindow", "原图显示", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_2.setTitle(QtGui.QApplication.translate("MainWindow", "所选窗口某段时间金额", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton.setText(QtGui.QApplication.translate("MainWindow", "显示金额", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("MainWindow", "金额:", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_3.setTitle(QtGui.QApplication.translate("MainWindow", "数据属性列表", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_4.setTitle(QtGui.QApplication.translate("MainWindow", "预测结果图形化展示", None, QtGui.QApplication.UnicodeUTF8))
示例8: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(960, 546)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout_2.setContentsMargins(9, 9, 9, 0)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.Content = QtWidgets.QWidget(self.centralwidget)
self.Content.setObjectName("Content")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.Content)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(10)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.Electrode = QtWidgets.QWidget(self.Content)
self.Electrode.setMinimumSize(QtCore.QSize(200, 0))
self.Electrode.setMaximumSize(QtCore.QSize(400, 800))
self.Electrode.setObjectName("Electrode")
self.verticalLayout = QtWidgets.QVBoxLayout(self.Electrode)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(5)
self.verticalLayout.setObjectName("verticalLayout")
self.widget = QtWidgets.QWidget(self.Electrode)
self.widget.setMinimumSize(QtCore.QSize(0, 200))
self.widget.setMaximumSize(QtCore.QSize(16777215, 700))
self.widget.setObjectName("widget")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.tabWidget = QtWidgets.QTabWidget(self.widget)
self.tabWidget.setObjectName("tabWidget")
self.read = QtWidgets.QWidget()
self.read.setObjectName("read")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.read)
self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_6.setSpacing(0)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.Status = QtWidgets.QWidget(self.read)
self.Status.setObjectName("Status")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.Status)
self.horizontalLayout_5.setContentsMargins(5, 0, 5, 0)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.label_2 = QtWidgets.QLabel(self.Status)
self.label_2.setObjectName("label_2")
self.horizontalLayout_5.addWidget(self.label_2)
self.leStatus = QtWidgets.QLineEdit(self.Status)
self.leStatus.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.leStatus.setReadOnly(True)
self.leStatus.setObjectName("leStatus")
self.horizontalLayout_5.addWidget(self.leStatus)
self.verticalLayout_6.addWidget(self.Status)
self.Refrence = QtWidgets.QWidget(self.read)
self.Refrence.setObjectName("Refrence")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.Refrence)
self.horizontalLayout_6.setContentsMargins(5, 0, 5, 0)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_3 = QtWidgets.QLabel(self.Refrence)
self.label_3.setObjectName("label_3")
self.horizontalLayout_6.addWidget(self.label_3)
self.leRE = QtWidgets.QLineEdit(self.Refrence)
self.leRE.setMinimumSize(QtCore.QSize(100, 0))
self.leRE.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.leRE.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.leRE.setReadOnly(True)
self.leRE.setObjectName("leRE")
self.horizontalLayout_6.addWidget(self.leRE)
self.verticalLayout_6.addWidget(self.Refrence)
self.Counter = QtWidgets.QWidget(self.read)
self.Counter.setObjectName("Counter")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.Counter)
self.horizontalLayout_7.setContentsMargins(5, 0, 5, 0)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.label_4 = QtWidgets.QLabel(self.Counter)
self.label_4.setObjectName("label_4")
self.horizontalLayout_7.addWidget(self.label_4)
self.leCE = QtWidgets.QLineEdit(self.Counter)
self.leCE.setMinimumSize(QtCore.QSize(100, 0))
self.leCE.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.leCE.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.leCE.setReadOnly(True)
self.leCE.setObjectName("leCE")
self.horizontalLayout_7.addWidget(self.leCE)
self.verticalLayout_6.addWidget(self.Counter)
self.Working1 = QtWidgets.QWidget(self.read)
self.Working1.setObjectName("Working1")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.Working1)
self.horizontalLayout_9.setContentsMargins(5, 0, 5, 0)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.label_6 = QtWidgets.QLabel(self.Working1)
self.label_6.setObjectName("label_6")
self.horizontalLayout_9.addWidget(self.label_6)
self.leWE1 = QtWidgets.QLineEdit(self.Working1)
self.leWE1.setMinimumSize(QtCore.QSize(100, 0))
self.leWE1.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.leWE1.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.leWE1.setReadOnly(True)
self.leWE1.setObjectName("leWE1")
#.........这里部分代码省略.........
示例9: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1314, 894)
MainWindow.setWindowOpacity(1.0)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.spectra_splitter = QtGui.QSplitter(self.centralwidget)
self.spectra_splitter.setOrientation(QtCore.Qt.Horizontal)
self.spectra_splitter.setObjectName(_fromUtf8("spectra_splitter"))
self.gridLayoutWidget = QtGui.QWidget(self.spectra_splitter)
self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget)
self.gridLayout_2.setMargin(0)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.listView = QtGui.QListView(self.gridLayoutWidget)
self.listView.setMaximumSize(QtCore.QSize(300, 16777215))
self.listView.setObjectName(_fromUtf8("listView"))
self.gridLayout_2.addWidget(self.listView, 1, 0, 1, 1)
self.files_treeView = QtGui.QTreeView(self.gridLayoutWidget)
self.files_treeView.setMaximumSize(QtCore.QSize(300, 16777215))
self.files_treeView.setObjectName(_fromUtf8("files_treeView"))
self.gridLayout_2.addWidget(self.files_treeView, 0, 0, 1, 1)
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.widget = ParameterTree(self.gridLayoutWidget)
self.widget.setMinimumSize(QtCore.QSize(250, 600))
self.widget.setMaximumSize(QtCore.QSize(250, 16777215))
self.widget.setObjectName(_fromUtf8("widget"))
self.verticalLayout.addWidget(self.widget)
self.graphicsView_2 = GradientWidget(self.gridLayoutWidget)
self.graphicsView_2.setMaximumSize(QtCore.QSize(16777215, 20))
self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
self.verticalLayout.addWidget(self.graphicsView_2)
self.gridLayout_2.addLayout(self.verticalLayout, 0, 2, 2, 1)
self.graphicsView = PlotWidget(self.gridLayoutWidget)
self.graphicsView.setMinimumSize(QtCore.QSize(800, 400))
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.gridLayout_2.addWidget(self.graphicsView, 0, 1, 2, 1)
self.verticalLayout_3.addWidget(self.spectra_splitter)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setContentsMargins(-1, 30, 30, -1)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.load_pushButton = QtGui.QPushButton(self.centralwidget)
self.load_pushButton.setObjectName(_fromUtf8("load_pushButton"))
self.horizontalLayout_2.addWidget(self.load_pushButton)
self.unload_pushButton = QtGui.QPushButton(self.centralwidget)
self.unload_pushButton.setObjectName(_fromUtf8("unload_pushButton"))
self.horizontalLayout_2.addWidget(self.unload_pushButton)
self.plot_pushButton = QtGui.QPushButton(self.centralwidget)
self.plot_pushButton.setObjectName(_fromUtf8("plot_pushButton"))
self.horizontalLayout_2.addWidget(self.plot_pushButton)
self.PathToFile_lineEdit = QtGui.QLineEdit(self.centralwidget)
self.PathToFile_lineEdit.setObjectName(_fromUtf8("PathToFile_lineEdit"))
self.horizontalLayout_2.addWidget(self.PathToFile_lineEdit)
self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.horizontalLayout_2.addWidget(self.pushButton_2)
self.verticalLayout_3.addLayout(self.horizontalLayout_2)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1314, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
self.menuParameters = QtGui.QMenu(self.menubar)
self.menuParameters.setObjectName(_fromUtf8("menuParameters"))
self.menuAbout = QtGui.QMenu(self.menubar)
self.menuAbout.setObjectName(_fromUtf8("menuAbout"))
self.menuAnalysis = QtGui.QMenu(self.menubar)
self.menuAnalysis.setObjectName(_fromUtf8("menuAnalysis"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.actionOpen = QtGui.QAction(MainWindow)
self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
self.actionQuit = QtGui.QAction(MainWindow)
self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
self.actionEdit_All = QtGui.QAction(MainWindow)
self.actionEdit_All.setObjectName(_fromUtf8("actionEdit_All"))
self.actionColorization = QtGui.QAction(MainWindow)
self.actionColorization.setObjectName(_fromUtf8("actionColorization"))
self.actionAbout = QtGui.QAction(MainWindow)
self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
self.actionCorrections = QtGui.QAction(MainWindow)
self.actionCorrections.setObjectName(_fromUtf8("actionCorrections"))
self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.actionQuit)
self.menuParameters.addAction(self.actionEdit_All)
self.menuParameters.addAction(self.actionColorization)
self.menuAbout.addAction(self.actionAbout)
self.menuAnalysis.addAction(self.actionCorrections)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuAnalysis.menuAction())
self.menubar.addAction(self.menuParameters.menuAction())
self.menubar.addAction(self.menuAbout.menuAction())
#.........这里部分代码省略.........
示例10: Ui_lasagna_mainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMinimumSize [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))
#.........这里部分代码省略.........