Tk::ExecuteCommandTk::ExecuteCommand Perl module can execute a command asynchronously (non-blocking). | |
Download |
Tk::ExecuteCommand Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Stephen O. Lidie
- Publisher web site:
- http://search.cpan.org/~lusol/Tk-Gauge-0.3/Tk/Gauge.pm
Tk::ExecuteCommand Tags
Tk::ExecuteCommand Description
Tk::ExecuteCommand Perl module can execute a command asynchronously (non-blocking). Tk::ExecuteCommand Perl module can execute a command asynchronously (non-blocking).SYNOPSIS $exec = $parent->ExecuteCommand;Tk::ExecuteCommand runs a command yet still allows Tk events to flow. All command output and errors are displayed in a window.This ExecuteCommand mega widget is composed of an LabEntry widget for command entry, a "Do It" Button that initiates command execution, and a ROText widget that collects command execution output.While the command is executing, the "Do It" Button changes to a "Cancel" Button that can prematurely kill the executing command. The kill_command method does the same thing programmatically.The primary benefit of this widget is the ability to execute system commands asynchronously without blocking Tk's event loop. The widget doesn't even have to be managed (pack/grid), see the EXAMPLES section.OPTIONS-commandThe command to execute asynchronously.-entryWidthCharacter width of command Entry widget.-heightCharacter height of the ROText widget.-labelLabel text for command Entry widget.-textLabel text for "Do It!" Button.-widthCharacter width of the ROText widget.METHODS$exec->execute_command;Initiates command execution.$exec->get_status;Returns a 2 element array of $? and $! from last command execution.$exec->kill_command;Terminates the command. This subroutine is called automatically via an OnDestroy handler when the ExecuteCommand widget goes away.$exec->terse_gui;packForgets all but the minimal ROText widget. Currently, this action cannot be rescinded. Requirements: · Perl
Tk::ExecuteCommand Related Software