Is there a command for python shell that allows key input without using enter, like a tkinter bind or a cmd choice. any suggestions
I've tried a tkinter bind. pynput is not out for python 3.7 yet :(. any other suggestions? This did not work.
canvas.bind_all('<KeyPress-Left>',Left)
canvas.bind_all('<KeyPress-Right',Right)
def Right():
if R == 0:
X = X + 1
def Left():
if L == 0:
X = X - 1
I expected it to change x, but it didn't change. (x is declared before these statements are called.)