Python newbie - need help on script button / choice

Hello,
I try to make a script starting with several choices, and I look for this choices to appear in a window with Buttons for each choices.
I saw on the forum the solution to do this as a list, but this presentation doesn't suit what I look for unfortunately.
Saw I tried, et tried again, but I really do not succeed to make those buttons work, especially to return the result as a variable, variable I would use to run the full script.
So to resume:
Choice A, choice B, C D etc. presented as buttons.
When choice "" is selected, store the result "choice"" and run the rest of the script depending of this result / variable.
And the best would be the window to direclty close when the button is clicked.
If anyone would have some solution for this, it would be really really great : )
Thank you !
I try to make a script starting with several choices, and I look for this choices to appear in a window with Buttons for each choices.
I saw on the forum the solution to do this as a list, but this presentation doesn't suit what I look for unfortunately.
Saw I tried, et tried again, but I really do not succeed to make those buttons work, especially to return the result as a variable, variable I would use to run the full script.
So to resume:
Choice A, choice B, C D etc. presented as buttons.
When choice "" is selected, store the result "choice"" and run the rest of the script depending of this result / variable.
And the best would be the window to direclty close when the button is clicked.
If anyone would have some solution for this, it would be really really great : )
Thank you !