Closed FoamyGuy closed 3 years ago
Currently the sub-elements within a GridLayout can be accessed by index of the order that they were added:
my_grid_layout[0]
Will return the first element that was added to the grid so that you can access it's properties i.e.
my_grid_layout[0].color = 0xFFFFFF
would change the font color of a Label that was the first item added.
It would be great to provide an alternate way to lookup the elements in the grid based on their x,y cell location so that you could do something like:
my_grid_layout.get_element(0,0).color = 0xFFFFFF
and it would give you back the element in the first row / column without needing to worry about the order that the elements were added in.
Currently the sub-elements within a GridLayout can be accessed by index of the order that they were added:
Will return the first element that was added to the grid so that you can access it's properties i.e.
would change the font color of a Label that was the first item added.
It would be great to provide an alternate way to lookup the elements in the grid based on their x,y cell location so that you could do something like:
and it would give you back the element in the first row / column without needing to worry about the order that the elements were added in.