[R] Off topic: Tcl/Tk outside R.
R P Herrold
herrold at owlriver.com
Mon Jul 14 18:07:25 CEST 2008
On Mon, 14 Jul 2008, Peter Dalgaard wrote:
> Rolf Turner wrote:
>> Can anyone give me a hint as to why it doesn't work when the the executable
>> script is invoked directly (from tcsh)? Other than the fact that I'm
>> using a Mac :-) .
>>
>> [Invoking unname -a gives ``Darwin TURNER-ROLF.local 8.11.1 Darwin Kernel
>> Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007;
>> root:xnu-792.25.20~1/RELEASE_I386 i386 i386''.]
> ... possibly Mac-specific. One thought:
> $ cat rolf.wish
> #!/usr/bin/tclsh
> package require Tk
> button .b -text "Press Me" -command exit
> pack .b
No. This example script works fine here on OS/X 10.4 (ppc)
emac:~/Documents herrold$ uname -a
Darwin emac.first.lan 8.11.0 Darwin Kernel Version 8.11.0: Wed
Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
Power Macintosh powerpc
emac:~/Documents herrold$
see:
http://www.herrold.com/wish-OSX.grab.png
ImageMagick 'import' on OS/X is giving me fits (I suspect
because the background display is not X, but rather Apple's
variant), so I used the Apple provided 'Grab' utility (which
snapshots in TIFF format, copied it to a Linux box, and used
ImageMagick's 'convert' to make the screenshot browser
friendlier.
-- Russ herrold
More information about the R-help
mailing list