Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Center a Tk window under mouse cursor

by Erez (Priest)
on Nov 04, 2008 at 07:38 UTC ( #721297=note: print w/replies, xml ) Need Help??


in reply to Center a Tk window under mouse cursor

I might be 100% wrong here, but the way I understand things, the location of the mouse can only be reported to the GUI after it has been rendered, i.e. after MainLoop is running. What most GUI do to achieve this, is actually move the mouse to the center of the window after it loads. To get it otherwise means you need to ask the OS/WM to tell you where the mouse is at loading time.

Stop saying 'script'. Stop saying 'line-noise'.
We have nothing to lose but our metaphors.

  • Comment on Re: Center a Tk window under mouse cursor

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://721297]
help
Chatterbox?
[stevieb]: Strawberry Perl csums have been corrected. Thanks again pryrt for helping test!

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-03-29 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.