I'm having this little nasty problem for which i'm afraid the answer is just to easy to think about in python 3 with tkinter.
So i'm making this on-screen-keyboard which I want to be enabled whenever I push the "enterCountryBtn", however it only enables one button/"key" from the kybrd_list.
The question is simple; How can I make sure that the complete list is enabled whenever i push "enterCountryBtn"?
This is the part of code where my problems seem to occur:
def countryCommand():
keyboardButtons['state']=tk.NORMAL
print("country")
kybrd_list = [
'q','w','e','r','t','y','...']
ro = 2
co = 0
for k in kybrd_list:
*A bunch of stuff goes here*
keyboardButtons=tk.Button(root, text=k, width=5, relief=rel2, command=cmd2, state=tk.DISABLED
*and some more stuff here*
enterCountryBtn = tk.Button(root, width=30, text="enter Country", command=countryCommand)
enterCountryBtn.grid(row=7, column=0)
thanks in advance, Niels