The easiest way to do this is by looping on the ChildObjects collection and printing the relevant properties you wish to view.
For example, you could try appending the following to the code above:
NumberOfButtons = s.Count()
For i = 0 To NumberOfButtons - 1
print s(i).getROProperty("name")
Next