Collecting Text input in a Dialog. - Perl
This is a discussion on Collecting Text input in a Dialog. - Perl ; I new to Perl/Tk programming and am having difficulty.
I am confused on how to collect the text entered in the dialog to be
seen in the main window.
I have the following:
use Tk;
use Tk: ialogBox;
use Tk::BrowseEntry;
...
-
Collecting Text input in a Dialog.
I new to Perl/Tk programming and am having difficulty.
I am confused on how to collect the text entered in the dialog to be
seen in the main window.
I have the following:
use Tk;
use Tk:
ialogBox;
use Tk::BrowseEntry;
my $mw = MainWindow->new(-title=>'Dialog Box');
my $name;
my $d = $mw->DialogBox(-title => "Title", -buttons => ["OK",
"Cancel"]);
my $be=$d->BrowseEntry(-text=>'Name',
-variable=>\$name)->pack;
$mw->Button(-text=>'Show',
-command=> sub{
$d->Show})->pack;
print STDOUT $name;
MainLoop;
-
-
Re: Collecting Text input in a Dialog.
Thank you. I also found the browsecmd and used that to print after a
selection is made. I was worried about
getting the data entered back to the main form for use.
Thanks again.
Jac
Similar Threads
-
By Application Development in forum Javascript
Replies: 1
Last Post: 09-19-2007, 09:34 PM
-
By Application Development in forum labview
Replies: 4
Last Post: 08-07-2007, 07:10 PM
-
By Application Development in forum ADO DAO RDO RDS
Replies: 0
Last Post: 04-24-2006, 01:32 PM
-
By Application Development in forum Java
Replies: 7
Last Post: 03-07-2005, 01:19 AM