No secret sauce, you are attempting to use a Show method on a sub-widget (the DialogBox) belonging to a parent widget which is withdrawn and thus invisible. If the parent is invisible the children cannot Show either.
The exception to this is the MessageBox (well, in my rotten recollection!) where you can do this: 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();
}
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.
jdtoronto |