I wanted to minimize my code from this:
btn_goto_Sell_A.config(state="normal")
btn_goto_Sell_B.config(state="normal")
btn_goto_Sell_C.config(state="normal")
btn_goto_Buy_A.config(state="normal")
btn_goto_Buy_B.config(state="normal")
btn_goto_Buy_C.config(state="normal")
To this:
def Enable_Button():
List = [
"A",
"B",
"C"
]
for Letter in List:
btn_goto_Sell_Letter.config(state="normal")
btn_goto_Buy_Letter.config(state="normal")
How can i properly talk to my button by building it via my list at the same time? The idea is, instead of writing the same button config, that its just my list and my for-loop.