|
From: Daniel A. S. <st...@ic...> - 2004-01-27 02:21:33
|
John,
On Tuesday, Jan 27, 2004, at 11:49 Australia/Sydney, John Seal wrote:
> When running X11 and tclsh8.4, how can I load Tk? [package require
> Tk] doesn't do it, and neither does [load {} Tk]. I've tried
> massaging the tcl_ and tk_ library and libPaths in various ways with
> no success.
the TclTkAquaBI doesn't come with TkX11 installed, except in the form
of tclkit, which I would suggest you look into using. Inside tclkit,
you can [package require Tk] fine. tclkit is at /Library/Tcl/bin/tclkit
for the 8.4.5 BI I'm getting ready at the moment, I also make available
binaries of Tcl/Tk X11, built in the standard unix manner:
http://tcltkaqua.sourceforge.net/8.4.5b1/tar/Tcl_X11-8.4.5.tar.gz
http://tcltkaqua.sourceforge.net/8.4.5b1/tar/Tk_X11-8.4.5.tar.gz
however, these won't be part of the standard installer
> I'm developing an app that has to run either with or without a GUI, so
> we can't assume a valid DISPLAY when we start up.
this again suggest tclkit as a good option
> This is on Panther 10.3.2 with TclTkAquaBI8.4.4 installed, although
> I'm not certain that's what I'm getting when I invoke tclsh. "which
> tclsh" says /usr/bin/tclsh, which points to /usr/bin/tclsh8.4.
the 8.4.4 BI overwrites /usr/bin/tclsh8.4 that comes with Panther with
it's own copy, unfortunately, the 8.4.5 BI will fix that.
Cheers,
Daniel
--
** Daniel A. Steffen ** "And now for something completely
** Dept. of Mathematics ** different" Monty Python
** Macquarie University ** <mailto:st...@ma...>
** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/>
|