Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to create a dialog box with perl/Tk that does not end your script?

by tybalt89 (Monsignor)
on Oct 07, 2016 at 07:03 UTC ( [id://1173462]=note: print w/replies, xml ) Need Help??


in reply to How to create a dialog box with perl/Tk that does not end your script?

#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new; $mw->geometry("500x200"); $mw->title("Hello User"); $mw->Label(-text => 'Hello user, please Load the required fileand then + press ok')->pack(); $mw->Button(-text => "OK", -command =>sub{$mw->destroy})->pack(); MainLoop; print "continue program here after exiting dialog box\n";
  • Comment on Re: How to create a dialog box with perl/Tk that does not end your script?
  • Download Code

Replies are listed 'Best First'.
Re^2: How to create a dialog box with perl/Tk that does not end your script?
by ankit.tayal560 (Beadle) on Oct 07, 2016 at 09:59 UTC

    Thanks Buddy. worked like anything.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-23 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found