def PutColor(self,colorvalue, alphaValue = 255, AlphaDraw = False):
self.colorvalue = colorvalue
if self.Glyph:
self.ColorQ.append(self.CommunityColor)
self.CommunityColor = QtGui.QColor(colorvalue)
# set the graph nodes to the transparent
if alphaValue == None:
self.CommunityColor.setAlpha(0)
self.opacity = 0
elif not(alphaValue==-1):
if AlphaDraw:
self.CommunityColor.setAlpha(alphaValue)
else:
self.CommunityColor.setAlpha(255)
self.opacity = alphaValue
self.NodeCommunityColor = True
self.update()
评论列表
文章目录