[tkinter] Moving the mouse pointer ?

John Michelsen john.michelsen at gte.net
Sat May 29 15:52:10 EDT 1999


>Hi, is it possible with tkinter to programmatically
>move the users mouse pointer ? Yes I know that
>from the GUI point-of-view this behaviour is in most
>cases not good - but I have a kind of draw program
>which uses a fixed grid on the drawcanvas (10 pixel).
>Whenever the user is in "rubberbanding" mode, I'd like
>to snap the mouse pointer to the gridlines.
>
>Possible ?


Not that I know of.  To snap to points you could make the line
(or whatever) end at the grid point if the mouse is within a
certain distance of it.  I think this is how most programs show
snapping.

John






More information about the Python-list mailing list