repellent has asked for the wisdom of the Perl Monks concerning the following question:
use Tk; my $main_w = MainWindow->new(); $main_w->title("Test"); my $xpos = $main_w->pointerx; my $ypos = $main_w->pointery; $main_w->geometry("+$xpos+$ypos"); MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Center a Tk window under mouse cursor
by zentara (Cardinal) on Nov 04, 2008 at 13:21 UTC | |
|
Re: Center a Tk window under mouse cursor
by Erez (Priest) on Nov 04, 2008 at 07:38 UTC |