ElectrodeNode.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:ECoG-ClusterFlow 作者: sugeerth 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号