[Solved] Can you tell me why i get the Error Message invalid syntax on my command [closed]


Check the indentation and syntaxis in the whole shouButtons function.

The block of code in the for loop must be indented. Also there is a comma missing between Button parameters text and command.

def showButtons():
     for i in players:
         btn = Button(window, text=i, command=onclick)
         btn.pack(side=LEFT)

4

solved Can you tell me why i get the Error Message invalid syntax on my command [closed]