[tk] grab main window position

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


    I am on the process of creating my first perl/tkx application. I was
wondering if there was a way to get the current window position on
screen...so that I could save and when the application is launched again
it'll position right there!

this is what I have coded so far:


use strict;
use warnings;
use Tkx;

my $mw = Tkx::widget->new(".");
   $mw->g_wm_title('Hello World!');



I guess there should be some sort of callback to actually notice when the
window changes position...


Site Timeline