[GRASS-dev] Re: how to check for system in TclTk

Michael Barton michael.barton at asu.edu
Mon May 7 00:24:14 EDT 2007

I've fixed this in the CVS, so that setting the default font should work
with Windows now.


On 5/6/07 2:09 PM, "Glynn Clements" <glynn at gclements.plus.com> wrote:

> Michael Barton wrote:
>> Paul Kelly sent me this great-sounding tip as a way to get system
>> information without invoking the Unix command uname, which is unavailable
>> under windows.
>> The only problem is that I get an error...
>> can't read "tcl_platform(platform)": no such variable
>> ...whenever I try to invoke it in a TclTk script. Even odder, if I invoke it
>> from a wish command line, it is fine (though it report unix on my Mac
>> because I'm using x11).
>> Is there some secret trick to using this? It is not apparent in the TclTk
>> docs that I'm reading.
> Are you using it from within a procedure? If so, you need to use
> "global tcl_platform", as with any other global variable.

Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

More information about the grass-dev mailing list