Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodes selected programmatically do not de-select other nodes when multiple_selection=False #81

Open
bheberlein opened this issue Apr 3, 2023 · 0 comments

Comments

@bheberlein
Copy link

If I create a Tree instance like this

from ipytree import Tree, Node

tree = Tree(multiple_selection=False)

node1 = Node('First Node')
node2 = Node('Second Node')

tree.add_node(node1)
tree.add_node(node2)

then I am unable to select multiple nodes by control-clicking (command-clicking on Mac), which is consistent with my understanding of what the multiple_selection keyword argument is supposed to do.

However, if I select the nodes programmatically, I can select multiple nodes at once:

node1.selected = True
node2.selected = True

It seems like the tree should automatically deselect node1 when node2.selected is set to True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant