(Tkinter) Can I bind a key to Canvas?

Davy zhushenli at gmail.com
Tue Nov 20 22:14:41 EST 2007


Hi all,

I have a canvas and a rectangle draw on it. Can I bind a key(e.g. UP)
to the canvas and make the rectangle move up? Or shall I bind the key
to rectangle(I don't think so, because it is not a widget)?

Any suggestions are welcome!
Best regards,
Davy



More information about the Python-list mailing list