Re: flow control question

2009-07-22 Thread Chris Vine
On Tue, 21 Jul 2009 23:45:38 -0400 (EDT) Allin Cottrell cottr...@wfu.edu wrote: On Tue, 21 Jul 2009, Dov Grobgeld wrote: Here are two programs that implement through the text viewer widget what you are asking for: - The Python console in gimp - GemTcl - a tcl interpreter The

Re: flow control question

2009-07-22 Thread Allin Cottrell
On Wed, 22 Jul 2009, Chris Vine wrote: On Tue, 21 Jul 2009 23:45:38 -0400 (EDT) Allin Cottrell cottr...@wfu.edu wrote: On Tue, 21 Jul 2009, Dov Grobgeld wrote: Here are two programs that implement through the text viewer widget what you are asking for: - The Python console in

Re: flow control question

2009-07-21 Thread Allin Cottrell
On Tue, 21 Jul 2009, Dov Grobgeld wrote: Here are two programs that implement through the text viewer widget what you are asking for: - The Python console in gimp - GemTcl - a tcl interpreter The way I set up the interaction is to listen to both the key-press-event and the

flow control question

2009-07-20 Thread Allin Cottrell
In the context of my gtk app I have an optional console -- not a real shell, but a means of sending commands to the app besides point-and-click. It's working OK, but for various reasons I'd like to reformulate it so that I have a loop like this: while (command != quit) { get_a_command();

Re: flow control question

2009-07-20 Thread Dov Grobgeld
Here are two programs that implement through the text viewer widget what you are asking for: - The Python console in gimp - GemTcl - a tcl interpreter The way I set up the interaction is to listen to both the key-press-event and the insert-text events of the text-viewer. The