Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3335918
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:04:26+00:00 2026-05-18T00:04:26+00:00

I have to display some print statements (which I get while running a Perl

  • 0

I have to display some print statements (which I get while running a Perl script) in the Tk GUI. I tried to show an example in pictorial format, for example:

Initializing the parser ...

Running the parser ...

Enabling the codec ...

Connected to the socket ...

Sending ipv4 traffic into the code ...

It goes on like this. I don’t know how to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:04:27+00:00Added an answer on May 18, 2026 at 12:04 am

    You could run your perl script through Tk::ExecuteCommand

    use Tk;
    use Tk::ExecuteCommand;
    
    $ec = tkinit()->ExecuteCommand(
         -command    => '',
         -entryWidth => 50,
         -height     => 10,
         -label      => '',
         -text       => 'Execute',
     )->pack;
     $ec->configure(-command => 'perl ./my_other_perl_script.pl');
     $ec->execute_command;
     $ec->update;
    

    In general, you need to do some sort of IPC to run a batch and update a Tk GUI. Because IO handles can create events in Tk. Tk::ExecuteCommand kind of hides the complexity of the IPC.

    Otherwise, you can design the IPC scheme of your own. Probably (roughly put) pipe, fork, and setup pipe events as a IO event, and the crucial commands to make a read-only log are:

    $text->configure( -state => 'normal' );
    $text->insert( end => $text_I_just_read_from_the_pipe );
    $text->configure( -state => 'disabled' );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running tomcat and have some jsp pages that display a subset of a
I display some objects that have thumbnails in two ways: one in a DataGridView,
I have a .net (3.5) WinForms application and want to display some html on
i want to display some information in a listview using the GridView. i have
I have to display yes/no button on some condition on my asp.net page ,
I have a UIViewController that manages the display of some data. When the user
I have some XML in an XmlDocument, and I want to display it on
I have a DateTime class and wish to display it according to some format...
I have some HTML that displays fine on FireFox3/Opera/Safari but not with IE7. The
I have a Rails app with some basic models. The website displays data retrieved

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.