Zejian has asked for the wisdom of the Perl Monks concerning the following question:
Hi, Monks, My question is about perl interactive shell and GUI. I wrote a perl script with TK. Once Gui up, I can do many things through click the buttons, or menus. But now, the buttons and menus become more and more. So I want to create a shell for the script. I can type the cmd in the shell, and then do the same thing as click in GUI. I can use this to create a shell simply: while (defined ($_= $psh_term->readline($psh_cmd ? "pa_shell >> " : "pa_shell $num_cmd> "))) { But, how can I create a shell like that with a MainWindow opened by: my $mw = MainWindow->new; So, once I type cmd in the shell, something can happen in the $mw as I click the button in it. Thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl interactive shell, and GUI
by kcott (Archbishop) on Oct 24, 2012 at 09:11 UTC | |
|
Re: perl interactive shell, and GUI
by zentara (Cardinal) on Oct 24, 2012 at 11:31 UTC |