[tkinter] Moving the mouse pointer ?

mlauer at amalia-atm.rz.uni-frankfurt.de mlauer at amalia-atm.rz.uni-frankfurt.de
Mon May 31 12:09:20 EDT 1999


John Michelsen (john.michelsen at gte.net) wrote:
> >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.

Yep - this is what I do. Thanks

    Regards & Gruesse from Mickey @ http://www.Vanille.de
  ---------------------------------------------------------
  How could anyone know me - when I don't even know myself ?






More information about the Python-list mailing list