For future, you’re probably best off keeping this kind of conversation in the original question, but at least you’ve referenced it here…
Your problem is that both name and text are individual properties of a button. To change the text, you just want this:
child.text = "New text"
thanks jgodfrey for your help. one more question
if I want to access custom_styles/normal of the button how do I do it?
I tried
child.set(“custom_styles/normal”,Color.firebrick)
and
child[“custom_styles/normal”].bg_color = Color(“#bada55”)
but they dont work not sure why?