Tree.items()

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
alaralum
Posts:22
Joined: Mon Jan 09, 2017 9:56 am

Tree.items()

Post by alaralum »

Hi,

i am missing some property like items() or getItems() for a tree shape. I need to set all Background Color of the items in the tree except the given one to a predefined color, but I have not saved the IDs of the internal items.

Is there anyway to get all these IDs in an array to allow a loop into all available objects inside?

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Tree.items()

Post by gschijndel »

You could loop thru all tree nodes with the attribute 'children', it gets the direct subelements of a tree node.

2 posts • Page 1 of 1