$startbitmap->geometry("+" . int($config{ScreenWidth}/2 - 377/2) . "+" . int($config{ScreenHeight}/2 - 272/2) ); $startbitmap->overrideredirect(1); $startbitmap->Label( -borderwidth => 0, -image => $startbitmap->Photo(-file => 'img/start.bmp') )->pack; $config{MainWindow}->after(4000, sub { $startbitmap->destroy()});