Skip to content

How to select lines(multiple line) in Tree widget? #4498

Answered by Yurri-huang
Yurri-huang asked this question in Q&A
Discussion options

You must be logged in to vote

overload

def render_label(
        self, node: TreeNode[TreeDataType], base_style: Style, style: Style
    ) -> Text:


    if # about node conditional expressions
                    node_label.append(raid, Style(bgcolor=Color.from_rgb(0,95,0)))
                else:
                    node_label.append(raid, style=node_label.style)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Yurri-huang
Comment options

Answer selected by Yurri-huang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant