in reply to Perl Tk : Displaying window in bottom right Corner

Hi,

You can use the screenwidth and screenheight methods to get information about the screens geometry. Then use the geometry() method to place your main window.

see Tk::Widget for documentation.

Cheers, Christoph

Replies are listed 'Best First'.
Re^2: Perl Tk : Displaying window in bottom right Corner
by murugaperumal (Sexton) on Apr 03, 2010 at 04:05 UTC
    Use the following code
    use strict; use warnings; use Tk; # Main Window my $mw = MainWindow->new; $mw->geometry('+793+475'); MainLoop;

      On my screen, (1920x1080) your code will put a window almost on the center :)

      Update: I guess your screen resolution is 1024x768 (or 1024x800).

      Regards, Stefan