squaremap.py 文件源码

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

项目:squaremap3 作者: kawaiicthulhu 项目源码 文件源码
def BrushForNode( self, node, depth=0 ):
        """Create brush to use to display the given node"""
        if node == self.selectedNode:
            colour = wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHT)
        elif node == self.highlightedNode:
            colour = wx.Colour( red=0, green=255, blue=0 )
        else:
            colour = self.adapter.background_color(node, depth)
            if not colour:
                red = (depth * 10)%255
                green = 255-((depth * 5)%255)
                blue = (depth * 25)%255
                colour = wx.Colour( red, green, blue )
        return wx.Brush( colour  )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号