in reply to TK::ExecuteCommand
The first line of your output is simply an FYI warning. Thus, it is not the reason your program is not working. Rather, the second line# We need Proc::ProcessTable to work properly. If it's not available, # then we act like Perl's builtin kill() command.
which has nothing to do with the first line, is why it fails. There is a coding error in the example you are trying to run. Since you haven't posted it, we cannot tell you what it might be.Can't call method "ExecuteCommand" on an undefined value at D:\...\exe +c.pl line 1.
Or, you can take that part of Tk::ExecuteCommand that handles the output redirection and use it as a basis for a custom-made solution.use Tk; use Tk::ExecuteCommand; my $mw = MainWindow->new; $ec = $mw->ExecuteCommand( -command => '', -entryWidth => 50, -height => 10, -label => '', -text => 'Execute', )->pack; $ec->configure(-command => 'dir'); $ec->execute_command; $ec->bell; $ec->update; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: TK::ExecuteCommand
by vikee (Sexton) on Jun 24, 2004 at 11:33 UTC | |
by davidj (Priest) on Jun 24, 2004 at 12:26 UTC | |
by vikee (Sexton) on Jun 24, 2004 at 13:02 UTC |