Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[tk] grab main window position

3 views
Skip to first unread message

Larry

unread,
Nov 22, 2009, 7:03:35 PM11/22/09
to
Hi,

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:

#!/wperl

use strict;
use warnings;
use Tkx;
Tkx::package_require("BWidget");

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

Tkx::MainLoop();

__END__;

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

thanks

0 new messages