How to add button "OnClicked" Event after adding it as a child.

This is the code for the child widget. I currently have it to just print, but it is not even doing that.