当前位置: 首页>>代码示例>>Python>>正文


Python GraphicsLayoutWidget.setMouseTracking方法代码示例

本文整理汇总了Python中pyqtgraph.GraphicsLayoutWidget.setMouseTracking方法的典型用法代码示例。如果您正苦于以下问题:Python GraphicsLayoutWidget.setMouseTracking方法的具体用法?Python GraphicsLayoutWidget.setMouseTracking怎么用?Python GraphicsLayoutWidget.setMouseTracking使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyqtgraph.GraphicsLayoutWidget的用法示例。


在下文中一共展示了GraphicsLayoutWidget.setMouseTracking方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Ui_MainWindow

# 需要导入模块: from pyqtgraph import GraphicsLayoutWidget [as 别名]
# 或者: from pyqtgraph.GraphicsLayoutWidget import setMouseTracking [as 别名]
class Ui_MainWindow(object):
    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)
#.........这里部分代码省略.........
开发者ID:SeismicData,项目名称:asdf_sextant,代码行数:103,代码来源:asdf_sextant_window.py


注:本文中的pyqtgraph.GraphicsLayoutWidget.setMouseTracking方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。