I would like to ‘lock’ the mouse into a specific Y coordinate on the Tkinter Canvas, so that when a user moves the mouse they can traverse the X axis but not the Y (the mouse would slide left and right but never up/down). Is there was a way to do this and how is it done?
Share
You might be able to do something like that in a game library, but to the best of my knowledge, this is not supported in a GUI library. You should try PyGame or Kivy.