On Thu, 2 Jan 2003 11:52:46 -0200 Christian Reis <[EMAIL PROTECTED]> wrote:
> On Thu, Jan 02, 2003 at 08:50:39AM +0100, Martijn Brouwer wrote: > > Hi, > > I would like to write an gtk/gnome frondend to an interactive program. > > This can be easily done using the zvt terminal widget. However I would > > like my application to be able to communicate with the interactive > > program without displaying this on the terminal. > > This paragraph is very hard to understand. Can you elaborate? I would like to be able to communicate in two ways with an interactive program: 1) by the user. This should be visible in a terminal. 2) by the graphical frontend application. This should be hidden from the user. I could use a zvt terminal, fork the interactive program and let the user communicate with the interactive program. In this case communication type 1) is trivial. But as far as I know, type 2 communication is not possible in this case, since all input to and from the interactive program has to go through the zvt terminal. When I do not fork the interactive program from the terminal but communicate through i.e. pexpect with the interactive program, it is easy to forward the output the a terminal using zvt_term_feed. The problem now is to receive the user input from the terminal. I hope I made my intensions clear now. Martijn _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
