def paintEvent(self, event): painter = QtGui.QPainter() painter.begin(self) painter.setPen(QtCore.Qt.NoPen) if self.dataType == "ExecPin": self._rawPin.setConnected(True) PinPainter.asExecPin(self, painter, None, None) else: PinPainter.asValuePin(self, painter, None, None) painter.end()
def paint(self, painter, option, widget): if self.isExec(): PinPainter.asExecPin(self, painter, option, widget) elif self.isArray(): PinPainter.asArrayPin(self, painter, option, widget) elif self.isList(): PinPainter.asListPin(self, painter, option, widget) else: PinPainter.asValuePin(self, painter, option, widget)
def paint(self, painter, option, widget): if self.isArray(): PinPainter.asArrayPin(self, painter, option, widget) elif self.isDict(): PinPainter.asDictPin(self, painter, option, widget) else: PinPainter.asValuePin(self, painter, option, widget)
def paint(self, painter, option, widget): # PinPainter.asValuePin(self, painter, option, widget) PinPainter.asExecPin(self, painter, option, widget)
def paint(self, painter, option, widget): PinPainter.asListPin(self, painter, option, widget)
def paint(self, painter, option, widget): PinPainter.asGroupPin(self, painter, option, widget)