in reply to Re^2: Perl/Tk: Dialog boxes for idiots (me)
in thread Perl/Tk: Dialog boxes for idiots (me)
The exception to this is the MessageBox (well, in my rotten recollection!) where you can do this:
This is a fragment fomr something that happens to be open in my editor, but it will illustrate what you need yo do. Again, "Mastering Perl/Tk" is your friend, why not go to http://safari.oreilly.com and get the 14 day free trial. That way you can learn Perl/Tk BEFORE you can get to the bookstore.my $mw = MainWindow->new(); $mw->withdraw(); my $ftp_warn = $mw->messageBox( -title => 'Downloading upgrade', -message => "We are about to download an upgrade to your software, d +o you wish to continue?", -type => 'YesNo', -icon => 'question', ); if ( $ftp_warn eq 'No' ) { exit; } else { &doUpdate(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl/Tk: Dialog boxes for idiots (me)
by Scott7477 (Chaplain) on May 05, 2006 at 05:05 UTC | |
|
Re^4: Perl/Tk: Dialog boxes for idiots (me)
by herby1620 (Monk) on May 05, 2006 at 16:30 UTC | |
by jdtoronto (Prior) on May 05, 2006 at 18:37 UTC | |
by runrig (Abbot) on May 05, 2006 at 20:23 UTC | |
by ocroquette (Novice) on Feb 19, 2009 at 15:27 UTC | |
by jdtoronto (Prior) on May 05, 2006 at 18:19 UTC | |
by herby1620 (Monk) on May 05, 2006 at 20:05 UTC |