in reply to MessageBox before mainloop problem
#!/usr/bin/perl use warnings; use strict; use Tk; my $test = shift || 0; my $mw = MainWindow->new; $mw->withdraw; $mw->Button(-text => "hello", -command => sub {print "hello!\n";})->pack; if ($test == 0) { my $answer = $mw->messageBox(-icon => 'question', -message => 'Hello World!', -title => 'My title', -type => 'Ok'); $mw->deiconify; }else{ $mw->deiconify; } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MessageBox before mainloop problem
by vikee (Sexton) on Sep 02, 2005 at 09:59 UTC | |
by zentara (Cardinal) on Sep 02, 2005 at 11:26 UTC |