comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Where is TASH, the Tcl/Tk binding?
Date: 24 May 2007 06:07:03 -0700
Date: 2007-05-24T06:07:03-07:00	[thread overview]
Message-ID: <1180012023.249748.202930@h2g2000hsg.googlegroups.com> (raw)
In-Reply-To: <1180011387.092783.177740@h2g2000hsg.googlegroups.com>

On 24 Maj, 14:56, ezkcdude <zamir.e...@gmail.com> wrote:

> I understand not wanting to use Tcl+Ada, but how about calling Tk from
> Ada? How does one go about doing that?

There is basically no way to call Tk directly. It was designed to be
called from Tcl interpreter.

Normally, the Tk library for whatever language has an *embedded* Tcl
interpreter that makes actual Tk calls. It is encapsulated, so you
might as well pretend you don't know about that interpreter somewhere
there. :-)

Interestingly, the Tkinter binding for Python also works this way (it
has "inter" in the name for a reason!), which brings a question why
the hell should we use two interpreters one on top of another...

Just for fun: http://cpptk.sourceforge.net/

--
Maciej Sobczak
http://www.msobczak.com/




  reply	other threads:[~2007-05-24 13:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-19  8:34 Where is TASH, the Tcl/Tk binding? Jerry
2007-04-19 21:29 ` Simon Wright
2007-05-24 12:56   ` ezkcdude
2007-05-24 13:07     ` Maciej Sobczak [this message]
2007-05-24 15:57       ` ezkcdude
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox