• Not able to run Tk::ExecuteCommand

    From archana bhardwaj@21:1/5 to All on Tue Sep 29 05:21:28 2015
    i am trying to run simple script

    use Tk;
    use Tk::ExecuteCommand;

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

    and saved in tk-hello.pl

    # hello.pl is another script that i want to call via Tk.

    while running perl tk-hello.pl, i am getting following error

    bad option "pady": must be -after, -anchor, -before, -expand, -fill, -in, -ipadx
    , -ipady, -padx, -pady, or -side at C:/Strawberry/perl/site/lib/Tk/Widget.pm lin
    e 1218.
    at C:/Strawberry/perl/site/lib/Tk/Widget.pm line 203.

    please help me to solve this issue.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From $Bill@21:1/5 to archana bhardwaj on Tue Sep 29 12:01:24 2015
    On 9/29/2015 05:21, archana bhardwaj wrote:
    i am trying to run simple script

    use Tk;
    use Tk::ExecuteCommand;

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

    and saved in tk-hello.pl

    # hello.pl is another script that i want to call via Tk.

    while running perl tk-hello.pl, i am getting following error

    bad option "pady": must be -after, -anchor, -before, -expand, -fill, -in, -ipadx
    , -ipady, -padx, -pady, or -side at C:/Strawberry/perl/site/lib/Tk/Widget.pm lin
    e 1218.
    at C:/Strawberry/perl/site/lib/Tk/Widget.pm line 203.

    please help me to solve this issue.

    Just FYI:
    On Windoze 8.1 with AS Perl 5.20.2:
    I get a window with the command in the input box and a cancel button to the right
    and an output window that says "Command's stdout and stderr" that is empty and a different error in the terminal window:
    Proc::ProcessTable missing, can't kill sub-children. at C:/Perl/site/lib/Proc/Killfam.pm line 22.
    Clicking Cancel, changes the button to Execute, clicking Execute reverts it back.
    Also started locking up when playing with it and had to kill perl.
    Obviously not very robust. ;)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)