I would make each button manually with the same parent, put the letter as the button text. In the parent script, connect their pressed signals in a for loop with get_children(), and bind the button text. Connect it to a function that takes that text as parameter and proceed to compare it to each letter on the hangman and do the game logic.