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


Python QtGui.QCheckBox方法代码示例

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


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

示例1: initLocalizationControls

# 需要导入模块: from pyqtgraph.Qt import QtGui [as 别名]
# 或者: from pyqtgraph.Qt.QtGui import QCheckBox [as 别名]
def initLocalizationControls(self):
        self.localizationControlsLayout = QtGui.QHBoxLayout()
        self.localizationControlsLayout.addStretch(3)
        self.localizationCheckBox = QtGui.QCheckBox('Enable Localization')
        self.localizationCheckBox.setChecked(self.localizationEnabled)
        self.localizationCheckBox.stateChanged.connect(self.localizationStateChanged)
        self.localizationControlsLayout.addWidget(self.localizationCheckBox)

        self.localizationControlsLayout.addStretch(1)
        self.localizationWindowSizeLabel = QtGui.QLabel('Sliding Window Size:')
        self.localizationControlsLayout.addWidget(self.localizationWindowSizeLabel)
        self.localziaitonWindowSizeSpinBox = QtGui.QSpinBox()
        self.localziaitonWindowSizeSpinBox.setMinimum(1)
        self.localziaitonWindowSizeSpinBox.setMaximum(128)
        self.localziaitonWindowSizeSpinBox.setValue(self.localizationWindowSize)
        self.localziaitonWindowSizeSpinBox.valueChanged.connect(self.localizationParamsChanged)
        self.localizationControlsLayout.addWidget(self.localziaitonWindowSizeSpinBox)
        self.localizationControlsLayout.addStretch(3) 
开发者ID:seanwood,项目名称:gcc-nmf,代码行数:20,代码来源:gccNMFInterface.py

示例2: __init__

# 需要导入模块: from pyqtgraph.Qt import QtGui [as 别名]
# 或者: from pyqtgraph.Qt.QtGui import QCheckBox [as 别名]
def __init__(self, number):
        self.number = number
        self.letter = self.chanstr[self.number]
        self.longName = "Channel %s" % self.letter
        self.shortName = "Ch %s" % self.letter
        self.dock = Dock(self.longName, area=None, size=(100, 50), widget=None, hideTitle=False, autoOrientation=False)
        self.dock.setFixedHeight(50)
        self.widget = pg.LayoutWidget()
        self.dock.addWidget(self.widget, row=0, col=0, rowspan=1, colspan=1)
        self.enabled = QtGui.QCheckBox("")
        self.enabled.stateChanged.connect(self._enabledChange)
        self.widget.addWidget(self.enabled, row=0, col=0, rowspan=0, colspan=1)
        self.pen = self.pens[self.number]
        self.picker = pg.ColorButton(color=self.pen.color())
        self.picker.sigColorChanging.connect(self.pickChange)
        self.picker.sigColorChanged.connect(self.pickDone)
        self.picker.setFixedSize(28, 21)
        self.picker.setFlat(True)
        self.widget.addWidget(self.picker, row=0, col=2, rowspan=0, colspan=1)
        self.ranges = QtGui.QComboBox()
        self.ranges.currentIndexChanged.connect(self._rangesChange)
        self.widget.addWidget(self.ranges, row=0, col=3, rowspan=0, colspan=500)
        self.plot = None
        self.xdata = None
        self.ydata = None
        self.enum = None
        self.range = None
        self.rangeMap = {}
        self.resetRange = False

        self.lock = th.Lock()
        if self.lock.acquire(False):
            self.lock.release()

        self.freeze(True)
        self.ranges.setEnabled(False) 
开发者ID:picotech,项目名称:picosdk-python-examples,代码行数:38,代码来源:picopyscope.py


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