We don't bite newbies here... much | |
PerlMonks |
Re^3: How to perform a subroutine run in cpan Tk::ExecuteCommand moduleby zentara (Archbishop) |
on Jun 26, 2014 at 11:00 UTC ( [id://1091333]=note: print w/replies, xml ) | Need Help?? |
is there a way to print plain font to the text widget in Tk::ExecuteCommand say if I don't want to set a couple of mini scripts for simple info message? .... 'Start running project 1...please wait' : No such file or directory You have a serious misunderstanding of what is going on. Tk::ExecuteCommand is designed to do just that .... execute a command , which means sending a valid command to a shell to be run. What you want to do is just plainly run some perl code and have it's output in the Text widget. For the question of killing a running command, make another button labeled 'Stop', and use Tk::ExecuteCommand's $exec->kill_command;
As to your other problem of sending plain text messages to the Text Widget, instead of a command, you will need to figure out a way in your subroutine of determining if you have a valid command, or just an informational message. If it's an information message, you can write it directly into the ROText subwidget like the following:
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh
In Section
Seekers of Perl Wisdom
|
|