#only a small relevant portion is shown here my $mw = MainWindow->new; my $width = '350'; my $height = '180'; $mw->geometry( $width."x".$height); $mw->resizable(0,0); $mw->title("Calculator");