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";
|
|---|
| 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 |