From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d546ce47c1cf45e1 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!u30g2000hsc.googlegroups.com!not-for-mail From: ezkcdude Newsgroups: comp.lang.ada Subject: Re: Where is TASH, the Tcl/Tk binding? Date: 24 May 2007 08:57:17 -0700 Organization: http://groups.google.com Message-ID: <1180022236.961809.115110@u30g2000hsc.googlegroups.com> References: <1176971696.604663.4220@y5g2000hsa.googlegroups.com> <1180011387.092783.177740@h2g2000hsg.googlegroups.com> <1180012023.249748.202930@h2g2000hsg.googlegroups.com> NNTP-Posting-Host: 169.147.3.25 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1180022241 18450 127.0.0.1 (24 May 2007 15:57:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 May 2007 15:57:21 +0000 (UTC) In-Reply-To: <1180012023.249748.202930@h2g2000hsg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: u30g2000hsc.googlegroups.com; posting-host=169.147.3.25; posting-account=UbN39Q0AAADjt_3dTnzY1z4Qc9xnXw4K Xref: g2news1.google.com comp.lang.ada:15914 Date: 2007-05-24T08:57:17-07:00 List-Id: On May 24, 8:07 am, Maciej Sobczak wrote: > On 24 Maj, 14:56, ezkcdude 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 Sobczakhttp://www.msobczak.com/ Thanks, when you put it that way, it doesn't make sense to me either.