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