本文整理汇总了Python中pyqtgraph.GraphicsLayoutWidget.setAcceptDrops方法的典型用法代码示例。如果您正苦于以下问题:Python GraphicsLayoutWidget.setAcceptDrops方法的具体用法?Python GraphicsLayoutWidget.setAcceptDrops怎么用?Python GraphicsLayoutWidget.setAcceptDrops使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqtgraph.GraphicsLayoutWidget
的用法示例。
在下文中一共展示了GraphicsLayoutWidget.setAcceptDrops方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_MainWindow
# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setAcceptDrops [as 别名]
#.........这里部分代码省略.........
self.PlayButton_2.setEnabled(False)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.PlayButton_2.sizePolicy().hasHeightForWidth())
self.PlayButton_2.setSizePolicy(sizePolicy)
self.PlayButton_2.setMinimumSize(QtCore.QSize(100, 32))
self.PlayButton_2.setMaximumSize(QtCore.QSize(100, 32))
self.PlayButton_2.setObjectName(_fromUtf8("PlayButton_2"))
self.horizontalLayout_2.addWidget(self.PlayButton_2)
self.FindBraggsButton = QtGui.QPushButton(self.widget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.FindBraggsButton.sizePolicy().hasHeightForWidth())
self.FindBraggsButton.setSizePolicy(sizePolicy)
self.FindBraggsButton.setMinimumSize(QtCore.QSize(100, 32))
self.FindBraggsButton.setMaximumSize(QtCore.QSize(100, 32))
self.FindBraggsButton.setObjectName(_fromUtf8("FindBraggsButton"))
self.horizontalLayout_2.addWidget(self.FindBraggsButton)
self.FindBraggsButton.raise_()
self.PlayButton_2.raise_()
self.verticalLayout_5.addWidget(self.widget)
self.gridLayout_12.addWidget(self.groupBox_3, 2, 0, 1, 1)
self.horizontalLayout_8.addWidget(self.widget_2)
self.graphicsView = GraphicsLayoutWidget(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
self.graphicsView.setSizePolicy(sizePolicy)
self.graphicsView.setMinimumSize(QtCore.QSize(800, 800))
self.graphicsView.setSizeIncrement(QtCore.QSize(1, 1))
self.graphicsView.setAcceptDrops(False)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.horizontalLayout_8.addWidget(self.graphicsView)
self.verticalLayout_8 = QtGui.QVBoxLayout()
self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
self.groupBox_4 = QtGui.QGroupBox(self.centralwidget)
self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
self.horizontalLayout_6 = QtGui.QHBoxLayout(self.groupBox_4)
self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
self.gridLayout_4 = QtGui.QGridLayout()
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
self.Boost = QtGui.QLineEdit(self.groupBox_4)
self.Boost.setObjectName(_fromUtf8("Boost"))
self.gridLayout_4.addWidget(self.Boost, 0, 1, 1, 1)
self.ColorMap = QtGui.QComboBox(self.groupBox_4)
self.ColorMap.setObjectName(_fromUtf8("ColorMap"))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.ColorMap.addItem(_fromUtf8(""))
self.gridLayout_4.addWidget(self.ColorMap, 3, 1, 1, 1)
self.Min = QtGui.QLineEdit(self.groupBox_4)
self.Min.setObjectName(_fromUtf8("Min"))
self.gridLayout_4.addWidget(self.Min, 1, 1, 1, 1)
self.label_9 = QtGui.QLabel(self.groupBox_4)
self.label_9.setAlignment(QtCore.Qt.AlignCenter)