in reply to Re: perl/tk show script progress
in thread perl/tk show script progress

This helps, yet I want a perk/tk gui window and within the window or a tab show a textarea type box where my second perl script will run.

Replies are listed 'Best First'.
Re^3: perl/tk show script progress
by zentara (Cardinal) on Sep 08, 2011 at 18:50 UTC
    yet I want a perk/tk gui window and within the window or a tab show a textarea type box where my second perl script will run.

    See Tk::ExecuteCommand. Here is an example:

    #!/usr/bin/perl -w use Tk; use Tk::ExecuteCommand; use Tk::widgets qw/LabEntry/; use strict; my $mw = MainWindow->new; my $ec = $mw->ExecuteCommand( -command => '', -entryWidth => 50, -height => 10, -label => '', -text => 'Execute', )->pack; $ec->configure(-command => 'date; sleep 10; date'); my $button = $mw->Button(-text =>'Do_it', -background =>'hotpink', -command => sub{ $ec->execute_command }, )->pack; MainLoop;

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
Re^3: perl/tk show script progress
by swoop (Acolyte) on Sep 08, 2011 at 18:31 UTC
    The ProgressBar would be good if I could show the number count within the perl/tk GUI instead of the terminal window I started the ProgressBar perl/tk script.