本文整理汇总了Python中mplwidget.MplWidget.setContextMenuPolicy方法的典型用法代码示例。如果您正苦于以下问题:Python MplWidget.setContextMenuPolicy方法的具体用法?Python MplWidget.setContextMenuPolicy怎么用?Python MplWidget.setContextMenuPolicy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mplwidget.MplWidget
的用法示例。
在下文中一共展示了MplWidget.setContextMenuPolicy方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_Plotterui
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setContextMenuPolicy [as 别名]
class Ui_Plotterui(object):
def setupUi(self, Plotterui):
Plotterui.setObjectName(_fromUtf8("Plotterui"))
Plotterui.setEnabled(True)
Plotterui.resize(687, 624)
self.MPLArea = MplWidget(Plotterui)
self.MPLArea.setGeometry(QtCore.QRect(20, 40, 651, 561))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.MPLArea.sizePolicy().hasHeightForWidth())
self.MPLArea.setSizePolicy(sizePolicy)
self.MPLArea.setFocusPolicy(QtCore.Qt.NoFocus)
self.MPLArea.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.MPLArea.setObjectName(_fromUtf8("MPLArea"))
self.Plot_comboBox = QtGui.QComboBox(Plotterui)
self.Plot_comboBox.setGeometry(QtCore.QRect(20, 10, 141, 22))
self.Plot_comboBox.setMaxVisibleItems(100)
self.Plot_comboBox.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
self.Plot_comboBox.setObjectName(_fromUtf8("Plot_comboBox"))
self.retranslateUi(Plotterui)
QtCore.QObject.connect(self.Plot_comboBox, QtCore.SIGNAL(_fromUtf8("activated(int)")), Plotterui.myPlot)
QtCore.QMetaObject.connectSlotsByName(Plotterui)
def retranslateUi(self, Plotterui):
Plotterui.setWindowTitle(
QtGui.QApplication.translate("Plotterui", "Plotter", None, QtGui.QApplication.UnicodeUTF8)
)
示例2: Ui_Plotterui
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setContextMenuPolicy [as 别名]
class Ui_Plotterui(object):
def setupUi(self, Plotterui):
Plotterui.setObjectName(_fromUtf8("Plotterui"))
Plotterui.setEnabled(True)
Plotterui.resize(803, 586)
self.MPLArea = MplWidget(Plotterui)
self.MPLArea.setGeometry(QtCore.QRect(150, 10, 641, 561))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.MPLArea.sizePolicy().hasHeightForWidth())
self.MPLArea.setSizePolicy(sizePolicy)
self.MPLArea.setFocusPolicy(QtCore.Qt.NoFocus)
self.MPLArea.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.MPLArea.setObjectName(_fromUtf8("MPLArea"))
self.PLOT_Button = QtGui.QPushButton(Plotterui)
self.PLOT_Button.setGeometry(QtCore.QRect(20, 250, 75, 23))
self.PLOT_Button.setObjectName(_fromUtf8("PLOT_Button"))
self.checkTotalInt = QtGui.QCheckBox(Plotterui)
self.checkTotalInt.setEnabled(True)
self.checkTotalInt.setGeometry(QtCore.QRect(11, 101, 62, 17))
self.checkTotalInt.setMouseTracking(False)
self.checkTotalInt.setChecked(False)
self.checkTotalInt.setAutoExclusive(True)
self.checkTotalInt.setObjectName(_fromUtf8("checkTotalInt"))
self.checkFlammenhoehe = QtGui.QCheckBox(Plotterui)
self.checkFlammenhoehe.setGeometry(QtCore.QRect(11, 124, 95, 17))
self.checkFlammenhoehe.setChecked(True)
self.checkFlammenhoehe.setAutoExclusive(True)
self.checkFlammenhoehe.setObjectName(_fromUtf8("checkFlammenhoehe"))
self.checkFlammenhoeheGauss = QtGui.QCheckBox(Plotterui)
self.checkFlammenhoeheGauss.setGeometry(QtCore.QRect(10, 150, 131, 17))
self.checkFlammenhoeheGauss.setChecked(False)
self.checkFlammenhoeheGauss.setAutoExclusive(True)
self.checkFlammenhoeheGauss.setObjectName(_fromUtf8("checkFlammenhoeheGauss"))
self.checkFlammenoberflaecheGauss = QtGui.QCheckBox(Plotterui)
self.checkFlammenoberflaecheGauss.setGeometry(QtCore.QRect(10, 180, 131, 17))
self.checkFlammenoberflaecheGauss.setChecked(False)
self.checkFlammenoberflaecheGauss.setAutoExclusive(True)
self.checkFlammenoberflaecheGauss.setObjectName(_fromUtf8("checkFlammenoberflaecheGauss"))
self.retranslateUi(Plotterui)
QtCore.QObject.connect(self.PLOT_Button, QtCore.SIGNAL(_fromUtf8("clicked()")), Plotterui.myPlot)
QtCore.QMetaObject.connectSlotsByName(Plotterui)
def retranslateUi(self, Plotterui):
Plotterui.setWindowTitle(QtGui.QApplication.translate("Plotterui", "Plotter", None, QtGui.QApplication.UnicodeUTF8))
self.PLOT_Button.setText(QtGui.QApplication.translate("Plotterui", "PLOT!", None, QtGui.QApplication.UnicodeUTF8))
self.checkTotalInt.setText(QtGui.QApplication.translate("Plotterui", "total Int", None, QtGui.QApplication.UnicodeUTF8))
self.checkFlammenhoehe.setText(QtGui.QApplication.translate("Plotterui", "Flammenhoehe", None, QtGui.QApplication.UnicodeUTF8))
self.checkFlammenhoeheGauss.setText(QtGui.QApplication.translate("Plotterui", "Flammenhoehe Gauss", None, QtGui.QApplication.UnicodeUTF8))
self.checkFlammenoberflaecheGauss.setText(QtGui.QApplication.translate("Plotterui", "Flammenoberflaeche", None, QtGui.QApplication.UnicodeUTF8))