本文整理匯總了Python中pyqtgraph.GraphicsLayoutWidget.setViewportUpdateMode方法的典型用法代碼示例。如果您正苦於以下問題:Python GraphicsLayoutWidget.setViewportUpdateMode方法的具體用法?Python GraphicsLayoutWidget.setViewportUpdateMode怎麽用?Python GraphicsLayoutWidget.setViewportUpdateMode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pyqtgraph.GraphicsLayoutWidget
的用法示例。
在下文中一共展示了GraphicsLayoutWidget.setViewportUpdateMode方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Ui_Qt_CV_MainWindow
# 需要導入模塊: from pyqtgraph import GraphicsLayoutWidget [as 別名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setViewportUpdateMode [as 別名]
class Ui_Qt_CV_MainWindow(object):
def setupUi(self, Qt_CV_MainWindow):
Qt_CV_MainWindow.setObjectName("Qt_CV_MainWindow")
Qt_CV_MainWindow.resize(1158, 834)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Qt_CV_MainWindow.sizePolicy().hasHeightForWidth())
Qt_CV_MainWindow.setSizePolicy(sizePolicy)
Qt_CV_MainWindow.setMouseTracking(True)
Qt_CV_MainWindow.setAcceptDrops(False)
self.centralwidget = QtGui.QWidget(Qt_CV_MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.layoutWidget = QtGui.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(480, 50, 671, 41))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.file_edit = QtGui.QLineEdit(self.layoutWidget)
self.file_edit.setObjectName("file_edit")
self.horizontalLayout.addWidget(self.file_edit)
self.file_button = QtGui.QPushButton(self.layoutWidget)
self.file_button.setObjectName("file_button")
self.horizontalLayout.addWidget(self.file_button)
self.pic_view = GraphicsLayoutWidget(self.centralwidget)
self.pic_view.setGeometry(QtCore.QRect(599, 210, 551, 561))
self.pic_view.setViewportUpdateMode(QtGui.QGraphicsView.FullViewportUpdate)
self.pic_view.setObjectName("pic_view")
self.exec_button = QtGui.QPushButton(self.centralwidget)
self.exec_button.setGeometry(QtCore.QRect(840, 10, 81, 31))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.exec_button.sizePolicy().hasHeightForWidth())
self.exec_button.setSizePolicy(sizePolicy)
self.exec_button.setObjectName("exec_button")
self.file_scrollbar = QtGui.QScrollBar(self.centralwidget)
self.file_scrollbar.setGeometry(QtCore.QRect(480, 190, 431, 20))
self.file_scrollbar.setProperty("value", 50)
self.file_scrollbar.setOrientation(QtCore.Qt.Horizontal)
self.file_scrollbar.setObjectName("file_scrollbar")
self.layoutWidget1 = QtGui.QWidget(self.centralwidget)
self.layoutWidget1.setGeometry(QtCore.QRect(20, 354, 120, 71))
self.layoutWidget1.setObjectName("layoutWidget1")
self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget1)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.label = QtGui.QLabel(self.layoutWidget1)
font = QtGui.QFont()
font.setPointSize(10)
self.label.setFont(font)
self.label.setObjectName("label")
self.verticalLayout.addWidget(self.label)
self.label_2 = QtGui.QLabel(self.layoutWidget1)
font = QtGui.QFont()
font.setPointSize(10)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.verticalLayout.addWidget(self.label_2)
self.hist_view = PlotWidget(self.centralwidget)
self.hist_view.setGeometry(QtCore.QRect(477, 210, 121, 561))
self.hist_view.setObjectName("hist_view")
self.line = QtGui.QFrame(self.centralwidget)
self.line.setGeometry(QtCore.QRect(0, 300, 471, 16))
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName("line")
self.color_combo = QtGui.QComboBox(self.centralwidget)
self.color_combo.setGeometry(QtCore.QRect(170, 200, 271, 22))
self.color_combo.setObjectName("color_combo")
self.color_combo.addItem("")
self.color_combo.addItem("")
self.color_combo.addItem("")
self.color_combo.addItem("")
self.color_combo.addItem("")
self.eject_edge_or_not = QtGui.QCheckBox(self.centralwidget)
self.eject_edge_or_not.setGeometry(QtCore.QRect(20, 620, 171, 19))
self.eject_edge_or_not.setObjectName("eject_edge_or_not")
self.label_5 = QtGui.QLabel(self.centralwidget)
self.label_5.setGeometry(QtCore.QRect(20, 200, 81, 16))
font = QtGui.QFont()
font.setPointSize(10)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.label_6 = QtGui.QLabel(self.centralwidget)
self.label_6.setGeometry(QtCore.QRect(20, 170, 81, 21))
font = QtGui.QFont()
font.setPointSize(10)
self.label_6.setFont(font)
self.label_6.setObjectName("label_6")
self.smooth_combo = QtGui.QComboBox(self.centralwidget)
self.smooth_combo.setGeometry(QtCore.QRect(170, 170, 271, 22))
self.smooth_combo.setObjectName("smooth_combo")
self.smooth_combo.addItem("")
self.smooth_combo.addItem("")
self.smooth_combo.addItem("")
self.smooth_combo.addItem("")
self.smooth_combo.addItem("")
self.line_2 = QtGui.QFrame(self.centralwidget)
#.........這裏部分代碼省略.........