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!h2g2000hsg.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Where is TASH, the Tcl/Tk binding? Date: 24 May 2007 06:07:03 -0700 Organization: http://groups.google.com Message-ID: <1180012023.249748.202930@h2g2000hsg.googlegroups.com> References: <1176971696.604663.4220@y5g2000hsa.googlegroups.com> <1180011387.092783.177740@h2g2000hsg.googlegroups.com> NNTP-Posting-Host: 137.138.37.241 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1180012024 18870 127.0.0.1 (24 May 2007 13:07:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 May 2007 13:07:04 +0000 (UTC) In-Reply-To: <1180011387.092783.177740@h2g2000hsg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070228 Red Hat/1.5.0.10-0.1.slc3 Firefox/1.5.0.10,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h2g2000hsg.googlegroups.com; posting-host=137.138.37.241; posting-account=Ch8E9Q0AAAA7lJxCsphg7hBNIsMsP4AE Xref: g2news1.google.com comp.lang.ada:15905 Date: 2007-05-24T06:07:03-07:00 List-Id: 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 Sobczak http://www.msobczak.com/