本文整理汇总了Python中pyqtgraph.GraphicsLayoutWidget类的典型用法代码示例。如果您正苦于以下问题:Python GraphicsLayoutWidget类的具体用法?Python GraphicsLayoutWidget怎么用?Python GraphicsLayoutWidget使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GraphicsLayoutWidget类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(670, 140, 75, 23))
self.pushButton.setObjectName("pushButton")
self.pyqtgraph1 = GraphicsLayoutWidget(self.centralwidget)
self.pyqtgraph1.setGeometry(QtCore.QRect(10, 10, 601, 201))
self.pyqtgraph1.setObjectName("pyqtgraph1")
self.pyqtgraph2 = GraphicsLayoutWidget(self.centralwidget)
self.pyqtgraph2.setGeometry(QtCore.QRect(10, 220, 381, 351))
self.pyqtgraph2.setObjectName("pyqtgraph2")
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setGeometry(QtCore.QRect(430, 380, 75, 23))
self.pushButton_2.setObjectName("pushButton_2")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
示例2: Ui_Form
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(648, 335)
self.horizontalLayout = QtGui.QHBoxLayout(Form)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.tabWidget = QtGui.QTabWidget(Form)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.verticalLayout = QtGui.QVBoxLayout(self.tab)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.pg_layout = GraphicsLayoutWidget(self.tab)
self.pg_layout.setObjectName(_fromUtf8("pg_layout"))
self.verticalLayout.addWidget(self.pg_layout)
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.horizontalLayout.addWidget(self.tabWidget)
self.pg_layout2 = GraphicsLayoutWidget(Form)
self.pg_layout2.setObjectName(_fromUtf8("pg_layout2"))
self.horizontalLayout.addWidget(self.pg_layout2)
self.retranslateUi(Form)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Form", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Form", "Tab 1", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Form", "Tab 2", None))
示例3: setupUi
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(648, 335)
self.horizontalLayout = QtGui.QHBoxLayout(Form)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.tabWidget = QtGui.QTabWidget(Form)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.verticalLayout = QtGui.QVBoxLayout(self.tab)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.pg_layout = GraphicsLayoutWidget(self.tab)
self.pg_layout.setObjectName(_fromUtf8("pg_layout"))
self.verticalLayout.addWidget(self.pg_layout)
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.horizontalLayout.addWidget(self.tabWidget)
self.pg_layout2 = GraphicsLayoutWidget(Form)
self.pg_layout2.setObjectName(_fromUtf8("pg_layout2"))
self.horizontalLayout.addWidget(self.pg_layout2)
self.retranslateUi(Form)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(Form)
示例4: Ui_plotdialog
class Ui_plotdialog(object):
def setupUi(self, plotdialog):
plotdialog.setObjectName(_fromUtf8("plotdialog"))
plotdialog.resize(854, 610)
self.graphicsView = GraphicsLayoutWidget(plotdialog)
self.graphicsView.setGeometry(QtCore.QRect(30, 10, 811, 481))
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.hslider = QtGui.QSlider(plotdialog)
self.hslider.setGeometry(QtCore.QRect(20, 510, 431, 29))
self.hslider.setMaximum(100)
self.hslider.setOrientation(QtCore.Qt.Horizontal)
self.hslider.setTickPosition(QtGui.QSlider.TicksBothSides)
self.hslider.setObjectName(_fromUtf8("hslider"))
self.comboBox = QtGui.QComboBox(plotdialog)
self.comboBox.setGeometry(QtCore.QRect(30, 550, 141, 31))
self.comboBox.setObjectName(_fromUtf8("comboBox"))
self.showbtn = QtGui.QToolButton(plotdialog)
self.showbtn.setGeometry(QtCore.QRect(240, 550, 151, 31))
self.showbtn.setObjectName(_fromUtf8("showbtn"))
self.retranslateUi(plotdialog)
QtCore.QMetaObject.connectSlotsByName(plotdialog)
def retranslateUi(self, plotdialog):
plotdialog.setWindowTitle(QtGui.QApplication.translate("plotdialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
self.showbtn.setText(QtGui.QApplication.translate("plotdialog", "Show/Hide PF", None, QtGui.QApplication.UnicodeUTF8))
示例5: Ui_ROI
class Ui_ROI(object):
def setupUi(self, ROI):
ROI.setObjectName(_fromUtf8("ROI"))
ROI.resize(625, 300)
self.horizontalLayout = QtGui.QHBoxLayout(ROI)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.graphicsView = GraphicsLayoutWidget(ROI)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.horizontalLayout.addWidget(self.graphicsView)
self.retranslateUi(ROI)
QtCore.QMetaObject.connectSlotsByName(ROI)
def retranslateUi(self, ROI):
ROI.setWindowTitle(_translate("ROI", "Form", None))
示例6: setupUi
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(648, 335)
Form.setStyleSheet(_fromUtf8("#Form {\n"
" background-color: rgb(0,0,0)\n"
"}\n"
"\n"
"QLabel{\n"
" color: white\n"
"}"))
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.pg_layout = GraphicsLayoutWidget(Form)
self.pg_layout.setObjectName(_fromUtf8("pg_layout"))
self.horizontalLayout.addWidget(self.pg_layout)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.bench_btn = QtGui.QPushButton(Form)
self.bench_btn.setObjectName(_fromUtf8("bench_btn"))
self.horizontalLayout_2.addWidget(self.bench_btn)
self.pos_lbl = QtGui.QLabel(Form)
self.pos_lbl.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
self.pos_lbl.setObjectName(_fromUtf8("pos_lbl"))
self.horizontalLayout_2.addWidget(self.pos_lbl)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
示例7: setupUi
def setupUi(self, ROI):
ROI.setObjectName(_fromUtf8("ROI"))
ROI.resize(625, 300)
self.horizontalLayout = QtGui.QHBoxLayout(ROI)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.graphicsView = GraphicsLayoutWidget(ROI)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.horizontalLayout.addWidget(self.graphicsView)
self.retranslateUi(ROI)
QtCore.QMetaObject.connectSlotsByName(ROI)
示例8: setupUi
def setupUi(self, MainWindow):
"""This function is converted from the .ui file from the designer"""
MainWindow.setObjectName(_fromUtf8("Scope Window"))
MainWindow.resize(1200, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
# Graphics layout
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.graphicsLayout = QtGui.QHBoxLayout()
self.graphicsLayout.setObjectName(_fromUtf8("graphicsLayout"))
self.graphicsView = GraphicsLayoutWidget(self.centralwidget)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.graphicsLayout.addWidget(self.graphicsView)
self.horizontalLayout.addLayout(self.graphicsLayout)
# Side panel layout: initialize as a list view
self.sideDockPanel = QtGui.QDockWidget("Settings", self)
self.sideDockPanel.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea | QtCore.Qt.RightDockWidgetArea)
self.sideDockPanel.setObjectName(_fromUtf8("sideDockPanel"))
self.sideDockPanel.hide()
# self.sidePanelLayout = QtGui.QHBoxLayout()
# self.sidePanelLayout.setObjectName(_fromUtf8("sidePanelLayout"))
self.listView = QtGui.QListView(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.listView.sizePolicy().hasHeightForWidth())
self.listView.setSizePolicy(sizePolicy)
self.listView.setObjectName(_fromUtf8("listView"))
self.sideDockPanel.setWidget(self.listView)
self.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.sideDockPanel)
# self.sidePanelLayout.addWidget(self.listView)
# self.horizontalLayout.addLayout(self.sidePanelLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1225, 26))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.setMenuBarItems()
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
示例9: setupUi
def setupUi(self, plotdialog):
plotdialog.setObjectName(_fromUtf8("plotdialog"))
plotdialog.resize(854, 610)
self.graphicsView = GraphicsLayoutWidget(plotdialog)
self.graphicsView.setGeometry(QtCore.QRect(30, 10, 811, 481))
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.hslider = QtGui.QSlider(plotdialog)
self.hslider.setGeometry(QtCore.QRect(20, 510, 431, 29))
self.hslider.setMaximum(100)
self.hslider.setOrientation(QtCore.Qt.Horizontal)
self.hslider.setTickPosition(QtGui.QSlider.TicksBothSides)
self.hslider.setObjectName(_fromUtf8("hslider"))
self.comboBox = QtGui.QComboBox(plotdialog)
self.comboBox.setGeometry(QtCore.QRect(30, 550, 141, 31))
self.comboBox.setObjectName(_fromUtf8("comboBox"))
self.retranslateUi(plotdialog)
QtCore.QMetaObject.connectSlotsByName(plotdialog)
示例10: setupUi
def setupUi(self, QSpectrumAnalyzerMainWindow):
QSpectrumAnalyzerMainWindow.setObjectName(_fromUtf8("QSpectrumAnalyzerMainWindow"))
QSpectrumAnalyzerMainWindow.resize(1200, 810)
self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.plotSplitter = QtGui.QSplitter(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plotSplitter.sizePolicy().hasHeightForWidth())
self.plotSplitter.setSizePolicy(sizePolicy)
self.plotSplitter.setOrientation(QtCore.Qt.Vertical)
self.plotSplitter.setObjectName(_fromUtf8("plotSplitter"))
self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mainPlotLayout.sizePolicy().hasHeightForWidth())
self.mainPlotLayout.setSizePolicy(sizePolicy)
self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout"))
self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.waterfallPlotLayout.sizePolicy().hasHeightForWidth())
self.waterfallPlotLayout.setSizePolicy(sizePolicy)
self.waterfallPlotLayout.setObjectName(_fromUtf8("waterfallPlotLayout"))
self.horizontalLayout.addWidget(self.plotSplitter)
QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1200, 30))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menu_File = QtGui.QMenu(self.menubar)
self.menu_File.setObjectName(_fromUtf8("menu_File"))
self.menu_Help = QtGui.QMenu(self.menubar)
self.menu_Help.setObjectName(_fromUtf8("menu_Help"))
QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar)
self.controlsDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.controlsDockWidget.sizePolicy().hasHeightForWidth())
self.controlsDockWidget.setSizePolicy(sizePolicy)
self.controlsDockWidget.setMinimumSize(QtCore.QSize(190, 10))
self.controlsDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
self.controlsDockWidget.setObjectName(_fromUtf8("controlsDockWidget"))
self.controlsDockWidgetContents = QtGui.QWidget()
self.controlsDockWidgetContents.setObjectName(_fromUtf8("controlsDockWidgetContents"))
self.gridLayout_2 = QtGui.QGridLayout(self.controlsDockWidgetContents)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.startButton = QtGui.QPushButton(self.controlsDockWidgetContents)
self.startButton.setObjectName(_fromUtf8("startButton"))
self.gridLayout_2.addWidget(self.startButton, 0, 0, 1, 1)
self.stopButton = QtGui.QPushButton(self.controlsDockWidgetContents)
self.stopButton.setObjectName(_fromUtf8("stopButton"))
self.gridLayout_2.addWidget(self.stopButton, 0, 1, 1, 1)
self.singleShotButton = QtGui.QPushButton(self.controlsDockWidgetContents)
self.singleShotButton.setObjectName(_fromUtf8("singleShotButton"))
self.gridLayout_2.addWidget(self.singleShotButton, 1, 0, 1, 2)
spacerItem = QtGui.QSpacerItem(20, 561, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.gridLayout_2.addItem(spacerItem, 2, 0, 1, 1)
self.controlsDockWidget.setWidget(self.controlsDockWidgetContents)
QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.controlsDockWidget)
self.frequencyDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frequencyDockWidget.sizePolicy().hasHeightForWidth())
self.frequencyDockWidget.setSizePolicy(sizePolicy)
self.frequencyDockWidget.setMinimumSize(QtCore.QSize(225, 10))
self.frequencyDockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
self.frequencyDockWidget.setObjectName(_fromUtf8("frequencyDockWidget"))
self.frequencyDockWidgetContents = QtGui.QWidget()
self.frequencyDockWidgetContents.setObjectName(_fromUtf8("frequencyDockWidgetContents"))
self.formLayout = QtGui.QFormLayout(self.frequencyDockWidgetContents)
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.label_2 = QtGui.QLabel(self.frequencyDockWidgetContents)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
self.startFreqSpinBox = QtGui.QDoubleSpinBox(self.frequencyDockWidgetContents)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.startFreqSpinBox.sizePolicy().hasHeightForWidth())
self.startFreqSpinBox.setSizePolicy(sizePolicy)
self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.startFreqSpinBox.setDecimals(3)
self.startFreqSpinBox.setMinimum(24.0)
self.startFreqSpinBox.setMaximum(1766.0)
self.startFreqSpinBox.setProperty("value", 87.0)
self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.startFreqSpinBox)
self.label_3 = QtGui.QLabel(self.frequencyDockWidgetContents)
self.label_3.setObjectName(_fromUtf8("label_3"))
#.........这里部分代码省略.........
示例11: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(877, 839)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.gridLayout_3 = QtGui.QGridLayout(self.tab)
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
self.graphicsView = GraphicsLayoutWidget(self.tab)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.gridLayout_3.addWidget(self.graphicsView, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.gridLayout_8 = QtGui.QGridLayout(self.tab_2)
self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
self.graphicsView_2 = GraphicsLayoutWidget(self.tab_2)
self.graphicsView_2.setObjectName(_fromUtf8("graphicsView_2"))
self.gridLayout_8.addWidget(self.graphicsView_2, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.tab_3 = QtGui.QWidget()
self.tab_3.setObjectName(_fromUtf8("tab_3"))
self.gridLayout_9 = QtGui.QGridLayout(self.tab_3)
self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
self.graphicsView_3 = GraphicsLayoutWidget(self.tab_3)
self.graphicsView_3.setObjectName(_fromUtf8("graphicsView_3"))
self.gridLayout_9.addWidget(self.graphicsView_3, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 877, 19))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.dockWidget = QtGui.QDockWidget(MainWindow)
self.dockWidget.setObjectName(_fromUtf8("dockWidget"))
self.dockWidgetContents = QtGui.QWidget()
self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
self.gridLayout_4 = QtGui.QGridLayout(self.dockWidgetContents)
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.gridLayout_4.addItem(spacerItem, 3, 0, 1, 1)
self.groupBox_2 = QtGui.QGroupBox(self.dockWidgetContents)
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.gridLayout_6 = QtGui.QGridLayout()
self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
self.fileLineEdit1_3 = QtGui.QLineEdit(self.groupBox_2)
self.fileLineEdit1_3.setReadOnly(True)
self.fileLineEdit1_3.setObjectName(_fromUtf8("fileLineEdit1_3"))
self.gridLayout_6.addWidget(self.fileLineEdit1_3, 0, 2, 1, 1)
self.fileLabel1_3 = QtGui.QLabel(self.groupBox_2)
self.fileLabel1_3.setObjectName(_fromUtf8("fileLabel1_3"))
self.gridLayout_6.addWidget(self.fileLabel1_3, 0, 0, 1, 1)
self.eeg_channel_combo_box = QtGui.QComboBox(self.groupBox_2)
self.eeg_channel_combo_box.setObjectName(_fromUtf8("eeg_channel_combo_box"))
self.gridLayout_6.addWidget(self.eeg_channel_combo_box, 1, 2, 1, 1)
self.label_3 = QtGui.QLabel(self.groupBox_2)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.gridLayout_6.addWidget(self.label_3, 1, 0, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout_6, 0, 0, 1, 1)
self.gridLayout_4.addWidget(self.groupBox_2, 0, 0, 1, 1)
self.groupBox_3 = QtGui.QGroupBox(self.dockWidgetContents)
self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_3)
self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
self.gridLayout_7 = QtGui.QGridLayout()
self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
self.label_5 = QtGui.QLabel(self.groupBox_3)
self.label_5.setObjectName(_fromUtf8("label_5"))
self.gridLayout_7.addWidget(self.label_5, 2, 0, 1, 1)
self.label_6 = QtGui.QLabel(self.groupBox_3)
self.label_6.setObjectName(_fromUtf8("label_6"))
self.gridLayout_7.addWidget(self.label_6, 1, 0, 1, 1)
self.fileLineEdit1_4 = QtGui.QLineEdit(self.groupBox_3)
self.fileLineEdit1_4.setReadOnly(True)
self.fileLineEdit1_4.setObjectName(_fromUtf8("fileLineEdit1_4"))
self.gridLayout_7.addWidget(self.fileLineEdit1_4, 0, 2, 1, 1)
self.fileLabel1_4 = QtGui.QLabel(self.groupBox_3)
self.fileLabel1_4.setObjectName(_fromUtf8("fileLabel1_4"))
self.gridLayout_7.addWidget(self.fileLabel1_4, 0, 0, 1, 1)
self.epoch_tmin_spinbox = QtGui.QDoubleSpinBox(self.groupBox_3)
self.epoch_tmin_spinbox.setMinimum(-1.0)
self.epoch_tmin_spinbox.setMaximum(1.0)
self.epoch_tmin_spinbox.setSingleStep(0.01)
self.epoch_tmin_spinbox.setProperty("value", -0.2)
self.epoch_tmin_spinbox.setObjectName(_fromUtf8("epoch_tmin_spinbox"))
self.gridLayout_7.addWidget(self.epoch_tmin_spinbox, 2, 2, 1, 1)
self.label_7 = QtGui.QLabel(self.groupBox_3)
#.........这里部分代码省略.........
示例12: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.setEnabled(True)
MainWindow.resize(1201, 818)
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.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.select_file_button = QtGui.QPushButton(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(9)
self.select_file_button.setFont(font)
self.select_file_button.setObjectName(_fromUtf8("select_file_button"))
self.horizontalLayout.addWidget(self.select_file_button)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.verticalLayout.addLayout(self.horizontalLayout)
self.central_tab = QtGui.QTabWidget(self.centralwidget)
self.central_tab.setObjectName(_fromUtf8("central_tab"))
self.waveform_tab = QtGui.QWidget()
self.waveform_tab.setObjectName(_fromUtf8("waveform_tab"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.waveform_tab)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.verticalLayout_3 = QtGui.QVBoxLayout()
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.group_by_network_check_box = QtGui.QCheckBox(self.waveform_tab)
self.group_by_network_check_box.setChecked(True)
self.group_by_network_check_box.setObjectName(_fromUtf8("group_by_network_check_box"))
self.verticalLayout_3.addWidget(self.group_by_network_check_box)
self.station_view = StationTreeWidget(self.waveform_tab)
self.station_view.setAnimated(False)
self.station_view.setHeaderHidden(True)
self.station_view.setObjectName(_fromUtf8("station_view"))
self.station_view.headerItem().setText(0, _fromUtf8("1"))
self.verticalLayout_3.addWidget(self.station_view)
self.web_view = QtWebKit.QWebView(self.waveform_tab)
self.web_view.setUrl(QtCore.QUrl(_fromUtf8("about:blank")))
self.web_view.setObjectName(_fromUtf8("web_view"))
self.verticalLayout_3.addWidget(self.web_view)
self.verticalLayout_3.setStretch(0, 1)
self.verticalLayout_3.setStretch(1, 10)
self.verticalLayout_3.setStretch(2, 4)
self.horizontalLayout_3.addLayout(self.verticalLayout_3)
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.reset_view_push_button = QtGui.QPushButton(self.waveform_tab)
self.reset_view_push_button.setEnabled(False)
self.reset_view_push_button.setObjectName(_fromUtf8("reset_view_push_button"))
self.horizontalLayout_2.addWidget(self.reset_view_push_button)
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.detrend_and_demean_check_box = QtGui.QCheckBox(self.waveform_tab)
self.detrend_and_demean_check_box.setObjectName(_fromUtf8("detrend_and_demean_check_box"))
self.horizontalLayout_2.addWidget(self.detrend_and_demean_check_box)
self.normalize_check_box = QtGui.QCheckBox(self.waveform_tab)
self.normalize_check_box.setObjectName(_fromUtf8("normalize_check_box"))
self.horizontalLayout_2.addWidget(self.normalize_check_box)
spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem2)
self.references_push_button = QtGui.QPushButton(self.waveform_tab)
self.references_push_button.setObjectName(_fromUtf8("references_push_button"))
self.horizontalLayout_2.addWidget(self.references_push_button)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.graph = GraphicsLayoutWidget(self.waveform_tab)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graph.sizePolicy().hasHeightForWidth())
self.graph.setSizePolicy(sizePolicy)
self.graph.setMouseTracking(False)
self.graph.setToolTip(_fromUtf8(""))
self.graph.setObjectName(_fromUtf8("graph"))
self.verticalLayout_2.addWidget(self.graph)
self.horizontalLayout_3.addLayout(self.verticalLayout_2)
self.horizontalLayout_3.setStretch(0, 3)
self.horizontalLayout_3.setStretch(1, 10)
self.central_tab.addTab(self.waveform_tab, _fromUtf8("Waveforms"))
self.auxiliary_data_tab = QtGui.QWidget()
self.auxiliary_data_tab.setObjectName(_fromUtf8("auxiliary_data_tab"))
self.horizontalLayout_11 = QtGui.QHBoxLayout(self.auxiliary_data_tab)
self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11"))
self.auxiliary_data_tree_view = QtGui.QTreeWidget(self.auxiliary_data_tab)
self.auxiliary_data_tree_view.setObjectName(_fromUtf8("auxiliary_data_tree_view"))
self.auxiliary_data_tree_view.headerItem().setText(0, _fromUtf8("1"))
self.auxiliary_data_tree_view.header().setVisible(False)
self.horizontalLayout_11.addWidget(self.auxiliary_data_tree_view)
self.verticalLayout_4 = QtGui.QVBoxLayout()
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.auxiliary_data_stacked_widget = QtGui.QStackedWidget(self.auxiliary_data_tab)
self.auxiliary_data_stacked_widget.setObjectName(_fromUtf8("auxiliary_data_stacked_widget"))
#.........这里部分代码省略.........
示例13: setupUi
def setupUi(self, SignalWidget):
SignalWidget.setObjectName("SignalWidget")
SignalWidget.resize(650, 511)
self.gridLayout = QtWidgets.QGridLayout(SignalWidget)
self.gridLayout.setObjectName("gridLayout")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.plotWidget = GraphicsLayoutWidget(SignalWidget)
self.plotWidget.setObjectName("plotWidget")
self.horizontalLayout_2.addWidget(self.plotWidget)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.hMinusButton = QtWidgets.QPushButton(SignalWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.hMinusButton.sizePolicy().hasHeightForWidth())
self.hMinusButton.setSizePolicy(sizePolicy)
self.hMinusButton.setMinimumSize(QtCore.QSize(30, 30))
self.hMinusButton.setMaximumSize(QtCore.QSize(30, 30))
self.hMinusButton.setFlat(False)
self.hMinusButton.setObjectName("hMinusButton")
self.horizontalLayout.addWidget(self.hMinusButton)
self.hPlusButton = QtWidgets.QPushButton(SignalWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.hPlusButton.sizePolicy().hasHeightForWidth())
self.hPlusButton.setSizePolicy(sizePolicy)
self.hPlusButton.setMinimumSize(QtCore.QSize(30, 30))
self.hPlusButton.setMaximumSize(QtCore.QSize(30, 30))
self.hPlusButton.setObjectName("hPlusButton")
self.horizontalLayout.addWidget(self.hPlusButton)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1)
self.groupBox = QtWidgets.QGroupBox(SignalWidget)
self.groupBox.setMinimumSize(QtCore.QSize(250, 0))
self.groupBox.setObjectName("groupBox")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.probeButton = QtWidgets.QRadioButton(self.groupBox)
self.probeButton.setChecked(True)
self.probeButton.setObjectName("probeButton")
self.buttonGroup = QtWidgets.QButtonGroup(SignalWidget)
self.buttonGroup.setObjectName("buttonGroup")
self.buttonGroup.addButton(self.probeButton)
self.verticalLayout_3.addWidget(self.probeButton)
self.signalButton = QtWidgets.QRadioButton(self.groupBox)
self.signalButton.setObjectName("signalButton")
self.buttonGroup.addButton(self.signalButton)
self.verticalLayout_3.addWidget(self.signalButton)
spacerItem = QtWidgets.QSpacerItem(20, 400, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem)
self.gridLayout.addWidget(self.groupBox, 0, 1, 1, 1)
self.retranslateUi(SignalWidget)
QtCore.QMetaObject.connectSlotsByName(SignalWidget)
示例14: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1118, 728)
MainWindow.setMinimumSize(QtCore.QSize(256, 256))
MainWindow.setMaximumSize(QtCore.QSize(1118, 16777215))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.histogram_groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
self.histogram_groupBox_2.setGeometry(QtCore.QRect(440, 520, 671, 171))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.histogram_groupBox_2.sizePolicy().hasHeightForWidth())
self.histogram_groupBox_2.setSizePolicy(sizePolicy)
self.histogram_groupBox_2.setMinimumSize(QtCore.QSize(100, 100))
self.histogram_groupBox_2.setMaximumSize(QtCore.QSize(700, 283))
self.histogram_groupBox_2.setObjectName("histogram_groupBox_2")
self.logOutput = QtWidgets.QTextEdit(self.histogram_groupBox_2)
self.logOutput.setGeometry(QtCore.QRect(10, 30, 651, 131))
font = QtGui.QFont()
font.setFamily("Courier")
self.logOutput.setFont(font)
self.logOutput.setObjectName("logOutput")
self.imageData_groupBox = QtWidgets.QGroupBox(self.centralwidget)
self.imageData_groupBox.setGeometry(QtCore.QRect(10, 0, 1100, 312))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.imageData_groupBox.sizePolicy().hasHeightForWidth())
self.imageData_groupBox.setSizePolicy(sizePolicy)
self.imageData_groupBox.setMinimumSize(QtCore.QSize(1100, 100))
self.imageData_groupBox.setMaximumSize(QtCore.QSize(1100, 312))
self.imageData_groupBox.setObjectName("imageData_groupBox")
self.label = QtWidgets.QLabel(self.imageData_groupBox)
self.label.setGeometry(QtCore.QRect(10, 520, 521, 16))
self.label.setWordWrap(True)
self.label.setObjectName("label")
self.layoutWidget = QtWidgets.QWidget(self.imageData_groupBox)
self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 1091, 291))
self.layoutWidget.setObjectName("layoutWidget")
self.largeimage_horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget)
self.largeimage_horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize)
self.largeimage_horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.largeimage_horizontalLayout.setObjectName("largeimage_horizontalLayout")
self.main_graphicsView = GraphicsLayoutWidget(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.main_graphicsView.sizePolicy().hasHeightForWidth())
self.main_graphicsView.setSizePolicy(sizePolicy)
self.main_graphicsView.setMinimumSize(QtCore.QSize(778, 256))
self.main_graphicsView.setMaximumSize(QtCore.QSize(778, 256))
self.main_graphicsView.setSizeIncrement(QtCore.QSize(1, 1))
self.main_graphicsView.setFrameShape(QtWidgets.QFrame.NoFrame)
self.main_graphicsView.setAlignment(QtCore.Qt.AlignCenter)
self.main_graphicsView.setObjectName("main_graphicsView")
self.largeimage_horizontalLayout.addWidget(self.main_graphicsView)
self.graphicsView_colorbar = GraphicsView(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graphicsView_colorbar.sizePolicy().hasHeightForWidth())
self.graphicsView_colorbar.setSizePolicy(sizePolicy)
self.graphicsView_colorbar.setMinimumSize(QtCore.QSize(30, 128))
self.graphicsView_colorbar.setMaximumSize(QtCore.QSize(25, 256))
self.graphicsView_colorbar.setSizeIncrement(QtCore.QSize(1, 1))
self.graphicsView_colorbar.setObjectName("graphicsView_colorbar")
self.largeimage_horizontalLayout.addWidget(self.graphicsView_colorbar)
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
self.verticalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
self.verticalLayout_3.setContentsMargins(-1, 5, -1, 5)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.dispmax_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.layoutWidget)
self.dispmax_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.dispmax_doubleSpinBox.setDecimals(3)
self.dispmax_doubleSpinBox.setObjectName("dispmax_doubleSpinBox")
self.verticalLayout_3.addWidget(self.dispmax_doubleSpinBox)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem)
self.resetDispLimits_Button = QtWidgets.QPushButton(self.layoutWidget)
self.resetDispLimits_Button.setObjectName("resetDispLimits_Button")
self.verticalLayout_3.addWidget(self.resetDispLimits_Button)
self.resetDispSmart_Button = QtWidgets.QPushButton(self.layoutWidget)
self.resetDispSmart_Button.setObjectName("resetDispSmart_Button")
self.verticalLayout_3.addWidget(self.resetDispSmart_Button)
self.saveDisp_Button = QtWidgets.QPushButton(self.layoutWidget)
self.saveDisp_Button.setObjectName("saveDisp_Button")
self.verticalLayout_3.addWidget(self.saveDisp_Button)
self.setMask_Button = QtWidgets.QPushButton(self.layoutWidget)
self.setMask_Button.setObjectName("setMask_Button")
self.verticalLayout_3.addWidget(self.setMask_Button)
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem1)
self.dispmin_doubleSpinBox = QtWidgets.QDoubleSpinBox(self.layoutWidget)
self.dispmin_doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.dispmin_doubleSpinBox.setDecimals(3)
self.dispmin_doubleSpinBox.setObjectName("dispmin_doubleSpinBox")
self.verticalLayout_3.addWidget(self.dispmin_doubleSpinBox)
self.largeimage_horizontalLayout.addLayout(self.verticalLayout_3)
#.........这里部分代码省略.........
示例15: setupUi
def setupUi(self, SliceWidget):
SliceWidget.setObjectName("SliceWidget")
SliceWidget.resize(554, 642)
self.gridLayout = QtWidgets.QGridLayout(SliceWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setSpacing(0)
self.gridLayout.setObjectName("gridLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.graphicsView = GraphicsLayoutWidget(SliceWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
self.graphicsView.setSizePolicy(sizePolicy)
self.graphicsView.setObjectName("graphicsView")
self.verticalLayout.addWidget(self.graphicsView)
self.controlsWidget = QtWidgets.QWidget(SliceWidget)
self.controlsWidget.setMaximumSize(QtCore.QSize(16777215, 25))
self.controlsWidget.setObjectName("controlsWidget")
self.layout_index_slider = QtWidgets.QHBoxLayout(self.controlsWidget)
self.layout_index_slider.setContentsMargins(20, 2, 15, 2)
self.layout_index_slider.setObjectName("layout_index_slider")
self.labelImageSeriesNumber = QtWidgets.QLabel(self.controlsWidget)
self.labelImageSeriesNumber.setText("")
self.labelImageSeriesNumber.setObjectName("labelImageSeriesNumber")
self.layout_index_slider.addWidget(self.labelImageSeriesNumber)
self.seriesSlider = QtWidgets.QSlider(self.controlsWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.seriesSlider.sizePolicy().hasHeightForWidth())
self.seriesSlider.setSizePolicy(sizePolicy)
self.seriesSlider.setMinimumSize(QtCore.QSize(200, 0))
self.seriesSlider.setOrientation(QtCore.Qt.Horizontal)
self.seriesSlider.setInvertedAppearance(False)
self.seriesSlider.setInvertedControls(False)
self.seriesSlider.setTickPosition(QtWidgets.QSlider.TicksAbove)
self.seriesSlider.setTickInterval(1)
self.seriesSlider.setObjectName("seriesSlider")
self.layout_index_slider.addWidget(self.seriesSlider)
self.labelSliceNumber = QtWidgets.QLabel(self.controlsWidget)
self.labelSliceNumber.setText("")
self.labelSliceNumber.setObjectName("labelSliceNumber")
self.layout_index_slider.addWidget(self.labelSliceNumber)
self.sliderSlice = QtWidgets.QSlider(self.controlsWidget)
self.sliderSlice.setMaximumSize(QtCore.QSize(16777215, 10))
self.sliderSlice.setOrientation(QtCore.Qt.Horizontal)
self.sliderSlice.setTickInterval(0)
self.sliderSlice.setObjectName("sliderSlice")
self.layout_index_slider.addWidget(self.sliderSlice)
self.pushButtonScrollLeft = QtWidgets.QPushButton(self.controlsWidget)
self.pushButtonScrollLeft.setStyleSheet("border:none")
self.pushButtonScrollLeft.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_left.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButtonScrollLeft.setIcon(icon)
self.pushButtonScrollLeft.setIconSize(QtCore.QSize(15, 15))
self.pushButtonScrollLeft.setObjectName("pushButtonScrollLeft")
self.layout_index_slider.addWidget(self.pushButtonScrollLeft)
self.pushButtonScrollRight = QtWidgets.QPushButton(self.controlsWidget)
self.pushButtonScrollRight.setStyleSheet("border:none")
self.pushButtonScrollRight.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_right.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon1.addPixmap(QtGui.QPixmap(":/icons/scroll_arrow_right_active.png"), QtGui.QIcon.Active, QtGui.QIcon.On)
self.pushButtonScrollRight.setIcon(icon1)
self.pushButtonScrollRight.setIconSize(QtCore.QSize(15, 15))
self.pushButtonScrollRight.setObjectName("pushButtonScrollRight")
self.layout_index_slider.addWidget(self.pushButtonScrollRight)
self.pushButtonManageVolumes = QtWidgets.QPushButton(self.controlsWidget)
self.pushButtonManageVolumes.setStyleSheet("border:none")
self.pushButtonManageVolumes.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icons/settings.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButtonManageVolumes.setIcon(icon2)
self.pushButtonManageVolumes.setIconSize(QtCore.QSize(15, 15))
self.pushButtonManageVolumes.setFlat(False)
self.pushButtonManageVolumes.setObjectName("pushButtonManageVolumes")
self.layout_index_slider.addWidget(self.pushButtonManageVolumes)
self.verticalLayout.addWidget(self.controlsWidget)
self.horizontalLayout.addLayout(self.verticalLayout)
self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
self.retranslateUi(SliceWidget)
QtCore.QMetaObject.connectSlotsByName(SliceWidget)