Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: perl/tk messagebox

by dhable (Monk)
on Dec 18, 2001 at 20:25 UTC ( #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(); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://132859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-05-24 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?