more useful options | |
PerlMonks |
Re: Center a Tk window under mouse cursorby Erez (Priest) |
on Nov 04, 2008 at 07:38 UTC ( [id://721297]=note: print w/replies, xml ) | Need Help?? |
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'.
In Section
Seekers of Perl Wisdom
|
|