Dec-16-2016, 02:27 PM
That is just a capitalization error. We were having issues with our forum code tags a week ago where they made everything lowercase.
Make sure your function looks like this:
Make sure your function looks like this:
def bind_keys(canvas): """Bind all appropriate keys to the correct function.""" bindings = {"<KeyPress-Up>" : movesquare, "<KeyPress-Down>": movesquare, "<KeyPress-Left>": movesquare, "<KeyPress-Right>": movesquare, "x": otherkey} for binding in bindings: canvas.bind_all(binding, bindings[binding])