On Fri, Jul 25, 2008 at 7:18 PM, Johan Vromans <[EMAIL PROTECTED]> wrote: > "Gabor Szabo" <[EMAIL PROTECTED]> writes: > >> The user can type in something in the last line, edit the last line >> and once the user presses ENTER the string in the last line is sent >> to the application. The application can print to the widget line >> after line. > > Isn't this exactly what Wx::Perl::ProcessStream is for?
AFAIK no, but it might help. WPPS can run an external application. What I had in my mind is that you have one single script that connects it own STDOUT to a widget. I tried to implement it and its not simple as the command line script is linear while the Wx GUI application works with callbacks. So once I run the MainLoop my script effectively loses control. One solution might be to notice if the user is running the script and then open the widget and run the script again maybe with an extra command line flag or an environment variable. When the script runs this second time, the module would not do anything as this time the "real code" should work. Gabor
