Example #1
0
 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()
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 def paint(self, painter, option, widget):
     # PinPainter.asValuePin(self, painter, option, widget)
     PinPainter.asExecPin(self, painter, option, widget)
Example #5
0
 def paint(self, painter, option, widget):
     PinPainter.asListPin(self, painter, option, widget)
Example #6
0
 def paint(self, painter, option, widget):
     PinPainter.asGroupPin(self, painter, option, widget)