crabbdean has asked for the wisdom of the Perl Monks concerning the following question:
sub dying { my ($error) = @_; if (!$error) { $error = "(none given)"; } my $text; $text .= "\n\nTARsync Error:\n\nFailed during:\n$message\n\nReason +:\n$error"; if ($poperr) { my $box = new MainWindow(-title => "ZIPsync failed!", -bg => 'yellow', -bd => 4, -relief => 'ridge'); $box->overrideredirect(1); my $label = $box->Label( -textvariable=> \$text, -bg=> 'yellow', )->pack(-fill=>'both', -padx => 40, ); Win32::Sound::Play('SystemExclamation'); my $ok = $box->Button(-text => "OK", -command => [sub{$box->destroy; exit; } ] )->pack(-padx => 20, -pady => 20 ); $box->withdraw; $box->Popup; $box->focus; MainLoop; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk window to the front of all application windows
by rinceWind (Monsignor) on Apr 12, 2004 at 23:34 UTC | |
|
Re: Tk window to the front of all application windows
by saintmike (Vicar) on Apr 12, 2004 at 21:46 UTC | |
|
Re: Tk window to the front of all application windows
by eserte (Deacon) on Apr 13, 2004 at 09:23 UTC | |
|
Re: Tk window to the front of all application windows
by crabbdean (Pilgrim) on Apr 13, 2004 at 20:02 UTC |