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 key-press-event
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();
do
On Tue, 2009-07-21 at 12:20 +1000, Mick wrote:
> On Mon, 20 Jul 2009 12:17:32 -0400
> Braden McDaniel wrote:
>
> > On Mon, 2009-07-20 at 11:22 +1000, Mick wrote:
> >
> > [snip]
> >
> > > compiling with:
> > > gcc -Wall -g -o tutor main.c -export-dynamic `pkg-config --cflags
> > > --libs gtk+-2.
On Mon, 20 Jul 2009 12:17:32 -0400
Braden McDaniel wrote:
> On Mon, 2009-07-20 at 11:22 +1000, Mick wrote:
>
> [snip]
>
> > compiling with:
> > gcc -Wall -g -o tutor main.c -export-dynamic `pkg-config --cflags
> > --libs gtk+-2.0` produces an executable that runs just as expected.
> >
> > When
On 07/20/2009 03:43 PM, David Lucena wrote:
Hi. I'm pretty much new to gtk. I've been about two days trying to draw a
transparent widget over another. I am using a HBox layout widget actually
where I put a DrawingArea, and use cairo to fill with a transparent red
color (50% alpha).
I've got th
Hi. I'm pretty much new to gtk. I've been about two days trying to draw a
transparent widget over another. I am using a HBox layout widget actually
where I put a DrawingArea, and use cairo to fill with a transparent red
color (50% alpha).
I've got the colormap of the Screen, and applied to the Dr
On Mon, 2009-07-20 at 11:22 +1000, Mick wrote:
[snip]
> compiling with:
> gcc -Wall -g -o tutor main.c -export-dynamic `pkg-config --cflags
> --libs gtk+-2.0` produces an executable that runs just as expected.
>
> When I split the .c file into the main function as main.c and the
> 'callbacks' in
On Mon, 20 Jul 2009, Olivier Guilyardi wrote:
> On 07/20/2009 02:48 AM, Allin Cottrell wrote:
>
> > I can report a bit more about GTK, RTF and the clipboard on OS X.
> > The main limitation on what I have to say is that I'm relying on
> > the "gtk2-framework" distribution prepared by I-don't-know-
On 07/20/2009 02:48 AM, Allin Cottrell wrote:
> I can report a bit more about GTK, RTF and the clipboard on OS X.
> The main limitation on what I have to say is that I'm relying on
> the "gtk2-framework" distribution prepared by I-don't-know-who,
> available at http://r.research.att.com/ , which i