Tkinter set mouse position?

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2007
Posts: 77
Reputation: aot is an unknown quantity at this point 
Solved Threads: 1
aot's Avatar
aot aot is offline Offline
Junior Poster in Training

Tkinter set mouse position?

 
0
  #1
May 28th, 2009
I've realized that it would be very helpful to me to SET the mouse cursor to a particular location. Having done the usual internet searches, I can't seem to find anything on how to do it. Any ideas?

(So I'm still set on converting to wx, but the project I've just done in Tkinter needs to get finished ASAP. It's an experiment and we need to start running participants.)
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 1,028
Reputation: woooee is a jewel in the rough woooee is a jewel in the rough woooee is a jewel in the rough 
Solved Threads: 290
woooee woooee is offline Offline
Veteran Poster

Re: Tkinter set mouse position?

 
0
  #2
May 29th, 2009
You maybe want "focus" or "geometry" depending on what you mean by "mouse position". You can find examples for both of them here http://infohost.nmt.edu/tcc/help/pubs/tkinter/
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 77
Reputation: aot is an unknown quantity at this point 
Solved Threads: 1
aot's Avatar
aot aot is offline Offline
Junior Poster in Training

Re: Tkinter set mouse position?

 
0
  #3
May 29th, 2009
Hmm, I don't think I want either of those things. I want to be able to tell the program to move the mouse cursor to position x, y.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 1
Reputation: sudhakar s is an unknown quantity at this point 
Solved Threads: 0
sudhakar s sudhakar s is offline Offline
Newbie Poster

Re: Tkinter set mouse position?

 
0
  #4
May 30th, 2009
use mouseover or mousefocus at X,Y
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,279
Reputation: sneekula has a spectacular aura about sneekula has a spectacular aura about 
Solved Threads: 176
sneekula's Avatar
sneekula sneekula is offline Offline
Nearly a Posting Maven

Re: Tkinter set mouse position?

 
0
  #5
May 30th, 2009
Originally Posted by sudhakar s View Post
use mouseover or mousefocus at X,Y
We are talking about the Tkinter GUI toolkit. There are no such methods.

widget.focus() puts the cursor to a widget

module turtle (uses tkinter) has a method goto(x,y)
Last edited by sneekula; May 30th, 2009 at 10:41 am.
No one died when Clinton lied.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC