in reply to define size to MainWindow (TK)

Tk::MainWindow responds to all options that Tk::Toplevel does: i.e. -width, -height etc:

#!/usr/bin/perl -w use Tk; my $mw = MainWindow->new( -width => '100', -height => '100' ); MainLoop;
I can't test this, by the way - my windowmanager thankfully doesn't let applications decide their window size.