considered it long time ago and even using it up to now, not just applicable with my current situation. I really need to use combobox as selection (like what is stated in my post) and not datagridview.
anyway thanks for helping, maybe there's work around for this?
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: