Python pyqtgraph.Qt.QtGui.QSlider() Examples
The following are 5
code examples of pyqtgraph.Qt.QtGui.QSlider().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pyqtgraph.Qt.QtGui
, or try the search function
.
Example #1
Source File: gccNMFInterface.py From gcc-nmf with MIT License | 6 votes |
def initMaskFunctionControls(self): self.maskFunctionControlslayout = QtGui.QHBoxLayout() labelsLayout = QtGui.QVBoxLayout() slidersLayout = QtGui.QVBoxLayout() self.maskFunctionControlslayout.addLayout(labelsLayout) self.maskFunctionControlslayout.addLayout(slidersLayout) def addSlider(label, changedFunction, minimum, maximum, value): labelWidget = QtGui.QLabel(label) labelsLayout.addWidget(labelWidget) slider = QtGui.QSlider(QtCore.Qt.Horizontal) slider.setMinimum(minimum) slider.setMaximum(maximum) slider.setValue(value) slider.sliderReleased.connect(changedFunction) slidersLayout.addWidget(slider) return slider, labelWidget self.targetModeWindowTDOASlider, self.targetModeWindowTDOALabel = addSlider('Center:', self.tdoaRegionChanged, 0, 100, 50) self.targetModeWindowWidthSlider, _ = addSlider('Width:', self.tdoaRegionChanged, 1, 101, 50) self.targetModeWindowBetaSlider, _ = addSlider('Shape:', self.tdoaRegionChanged, 0, 100, 50) self.targetModeWindowNoiseFloorSlider, _ = addSlider('Floor:', self.tdoaRegionChanged, 0, 100, 0)
Example #2
Source File: contextMenu.py From tf-pose with Apache License 2.0 | 5 votes |
def getContextMenus(self, event=None): if self.menu is None: self.menu = QtGui.QMenu() self.menu.setTitle(self.name+ " options..") green = QtGui.QAction("Turn green", self.menu) green.triggered.connect(self.setGreen) self.menu.addAction(green) self.menu.green = green blue = QtGui.QAction("Turn blue", self.menu) blue.triggered.connect(self.setBlue) self.menu.addAction(blue) self.menu.green = blue alpha = QtGui.QWidgetAction(self.menu) alphaSlider = QtGui.QSlider() alphaSlider.setOrientation(QtCore.Qt.Horizontal) alphaSlider.setMaximum(255) alphaSlider.setValue(255) alphaSlider.valueChanged.connect(self.setAlpha) alpha.setDefaultWidget(alphaSlider) self.menu.addAction(alpha) self.menu.alpha = alpha self.menu.alphaSlider = alphaSlider return self.menu # Define context menu callbacks
Example #3
Source File: UIWidgets.py From Astibot with MIT License | 5 votes |
def __init__(self, inLblToolTip, parent=None): super(QtGui.QSlider, self).__init__(parent) self.lblToolTip = inLblToolTip
Example #4
Source File: UIWidgets.py From Astibot with MIT License | 5 votes |
def __init__(self, inLblToolTip, parent=None): super(QtGui.QSlider, self).__init__(parent) self.lblToolTip = inLblToolTip
Example #5
Source File: contextMenu.py From qgisSpaceSyntaxToolkit with GNU General Public License v3.0 | 5 votes |
def getContextMenus(self, event=None): if self.menu is None: self.menu = QtGui.QMenu() self.menu.setTitle(self.name+ " options..") green = QtGui.QAction("Turn green", self.menu) green.triggered.connect(self.setGreen) self.menu.addAction(green) self.menu.green = green blue = QtGui.QAction("Turn blue", self.menu) blue.triggered.connect(self.setBlue) self.menu.addAction(blue) self.menu.green = blue alpha = QtGui.QWidgetAction(self.menu) alphaSlider = QtGui.QSlider() alphaSlider.setOrientation(QtCore.Qt.Horizontal) alphaSlider.setMaximum(255) alphaSlider.setValue(255) alphaSlider.valueChanged.connect(self.setAlpha) alpha.setDefaultWidget(alphaSlider) self.menu.addAction(alpha) self.menu.alpha = alpha self.menu.alphaSlider = alphaSlider return self.menu # Define context menu callbacks