Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: perl/tk messagebox

by dhable (Monk)
on Dec 18, 2001 at 20:25 UTC ( [id://132859] : note . print w/replies, xml ) Need Help??


in reply to Re: perl/tk messagebox
in thread perl/tk messagebox

Dialog will work if you only want to display a text message. If you are looking for a replacement for the VB MsgBox command , you need to use DialogBox.
use Tk::DialogBox; use Tk::JPEG; [.....] $d = $mw->DialogBox( -title => "reboot", -buttons => [ qw/Yes Cancel/] +); $mw->Photo( "redx", -format => "JPEG", -file => "redx.jpg"); $d->add( Label, image => "redx"); $d->add( Label, -text => "Please reboot now?"); if( $d->Show eq "Yes") { halt(); }