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

Michael Barton michael.barton at asu.edu
Mon May 7 11:20:40 EDT 2007

Thanks Paul. I'll update my version.


On 5/7/07 5:13 AM, "Paul Kelly" <paul-grass at stjohnspoint.co.uk> wrote:

> On Sun, 6 May 2007, Michael Barton wrote:
>> I've fixed this in the CVS, so that setting the default font should work
>> with Windows now.
> OK thanks I made a few more changes and now it is working quite well. Most
> notably that the
> global env, tcl_platform
> syntax didn't work (env(GISBASE) was an unknown variable) and I had to
> change it to:
> global env
> global tcl_platform
> (which is what the Tcl documentation suggests anyway; ISTR coming across
> this before but it seemed to be OK then. Not too sure.)
> The other noteworthy change was using the Native Tk file browser widget
> ::tk::dialog::file:: instead of the native Windows one that tk_getOpenFile
> uses. The native Windows one was very slow and clunky and most
> importantly didn't work for selecting fonts from the Windows fonts
> directory. Clicking on a file didn't put it into the selection box and
> double-clicking opened a Window displaying the font's capabilities. The
> native Tk widget admittedly has a distinct early-90s look to it but it is
> fast and (most importantly) works.
> Paul

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