1. Pure Tk
- Posted by Michael Sabal <mjs at OSA.ATT.NE.JP> Apr 15, 1998
- 692 views
David Cuny wrote:=20 >I haven't seen CDE, so I can't comment on it. I no longer sure if Tk = would >make a good graft onto Euphoria - I've yet to see a "pure" = version of it (i.e.: not >linked to Tcl). You probably will never find a "pure" version. Tk is an extension of = Tcl, specifically designed to interface with GUIs. While Tcl and Tk = have separate names, like EX and EXW, they are basically inseparable. I = don't know how it works in MS land, but in Linux it requires a special = shell to use. That might make implementation a bit difficult. C and = ASM code can be accessed on the system level, so using DLL's or inline = ASM code at runtime is no problem. If anyone knows of a compilable or = "straight" version of Tcl/Tk, it could be well worth the effort. Michael J. Sabal mjs at osa.att.ne.jp
2. Re: Pure Tk
- Posted by Irv Mullins <mountains at MINDSPRING.COM> Apr 15, 1998
- 734 views
At 10:08 AM 4/15/98 +-900, Michael J. Sabal wrote: >You probably will never find a "pure" version. Tk is an extension of Tcl, specifically designed to interface with GUIs. While Tcl and Tk have separate names, like EX and EXW, they are basically inseparable. I don't know how it works in MS land, but in Linux it requires a special shell to use. That might make implementation a bit difficult. C and ASM code can be accessed on the system level, so using DLL's or inline ASM code at runtime is no problem. If anyone knows of a compilable or "straight" version of Tcl/Tk, it could be well worth the effort. > From what I've been able to tell from the windoz TK/TCL, it uses a small (about 8k) interpreter (shell) to interpret the text scripts. Presumably this interpreter calls routines in the lib files (100 - 400k) You can see the routine names (hundreds) with a text editor, and there is a book available with details about calling these routines via a C program. My guess is that a Euphoria include file could be written to interface with this library also -- converting Euphoria i/o to c function calls, and adding all the windoz management functions. Irv
3. Re: Pure Tk
- Posted by David Cuny <dcuny at DSS.CA.GOV> Apr 15, 1998
- 715 views
------ =_NextPart_000_01BD685D.6CD22300 Content-Transfer-Encoding: quoted-printable Michael wrote: >You probably will never find a "pure" version. Actually, there are a number of languages that incorporate Tk in a = fairly "pure" version - Python, for example. But the Sun code is the = only multi-platform source that I've been able to find, and that version = definitely requires Tcl. Irv wrote: > My guess is that a Euphoria include file could be written to interface > with this [Tcl/Tk] library also -- converting Euphoria i/o to c = function calls, and > adding all the windoz management functions. You could probably even hack into the Tcl/Tk DLL and set up your own = interpreter session. The routines are well documented. I had considered = this, but couldn't figure out how to link Euphoria functions as = callbacks to the Tk widgets. If Robert wanted to link to the Tcl/Tk, he could probably hide most of = the Tcl details and make it look like "pure" Tk. But there are some features about Tk that I am less than excited about - = many of these reflecting Tk's X Windows origins.=20 Sun's Win32 window manager seems fairly inept at placing windows = sensibly on the screen, and almost all the Tcl code I've run across were = written by people with 20 inch screens. Resizing a window informs the = geometry manager that the widgets in the window need to be rearranged - = something disconcerting to Windows and Macintosh users, who are used to = their controls staying in static positions. On the other hand, Tk has some *very* powerful graphic routines - I = wouldn't want to volunteer to rewrite them. -- David Cuny ------ =_NextPart_000_01BD685D.6CD22300