How to use the plottr.QtCore.pyqtSlot function in plottr

To help you get started, we’ve selected a few plottr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github data-plottr / plottr / plottr / gui / widgets.py View on Github external
    @QtCore.pyqtSlot(int)
    def spinValueChanged(self, val):
        self.intervalChanged.emit(val)
github data-plottr / plottr / plottr / node / grid.py View on Github external
    @QtCore.pyqtSlot(QtGui.QAbstractButton, bool)
    def gridButtonSelected(self, btn, checked):
        if checked:

            # only emit the signal when the update is from the UI
            if self._emitUpdate:
                self.signalGridOption(self.getGrid())

            if GridOption(self.btnGroup.id(btn)) == GridOption.specifyShape:
                self.enableShapeEdit(True)
            else:
                self.enableShapeEdit(False)

            self._emitUpdate = True
github data-plottr / plottr / plottr / node / node.py View on Github external
    @QtCore.pyqtSlot(dict)
    def setOptionsFromNode(self, opts: Dict[str, Any]):
        """Set all options without triggering updates back to the node."""
        for opt, val in opts.items():
            self.setOptionFromNode(opt, val)
github data-plottr / plottr / plottr / gui / data_display.py View on Github external
    @QtCore.pyqtSlot(int)
    def _processCbChange(self, _):
        self.emitSelection()
github data-plottr / plottr / plottr / node / dim_reducer.py View on Github external
    @QtCore.pyqtSlot(dict)
    def setDimInfos(self, infos: Dict[str, str]):
        for ax, info in infos.items():
            self.setInfo(ax, info)
github data-plottr / plottr / plottr / node / dim_reducer.py View on Github external
    @QtCore.pyqtSlot(str, str)
    def setDimInfo(self, dim: str, info: str = ''):
        try:
            item = self.findItems(dim, QtCore.Qt.MatchExactly, 0)[0]
            item.setText(3, info)
        except IndexError:
            pass
github data-plottr / plottr / plottr / node / grid.py View on Github external
    @QtCore.pyqtSlot()
    def shapeSpecified(self):
        self.signalGridOption(self.getGrid())