use Tk; my $main = MainWindow->new; $main->Label(-bitmap => 'error')->pack; MainLoop;