[GRASS-dev] GRASS6.3 on Windows

Michael Barton michael.barton at asu.edu
Mon Sep 3 15:23:47 EDT 2007


I think that DialogGen was written a long time ago, before tk_messageBox
existed.

Michael


On 9/3/07 2:38 AM, "Maris Nartiss" <maris.gis at gmail.com> wrote:

> Hi,
> 
> when I wrote additional error trapping for GRASS startup screen I used
> DialogGen as it was already used there. Now maybe it's time to ask -
> why DialogGen instead of plain tk_messageBox? Is there some reason why
> startup screen uses DialoGen and not tk native widgets? Probably we
> should get rid of DialogGen popups in startup screen too.
> 
> About errorCode You can read more in TCL/Tk docs:
> http://www.tcl.tk/man/tcl8.4/TclCmd/tclvars.htm#M18
> 
> Just my 0.02,
> Maris.
> 
> 2007/9/3, Michael Barton <michael.barton at asu.edu>:
>> I just put in a large number of error message boxes instead of routing
>> errors to the terminal.
>> 
>> In general, it has generally seemed like a better idea to use a built in
>> TclTk tool like tk_messageBox if one was available, than to use a custom
>> function that we have to maintain to do the same thing. In the x11 version I
>> use on my Mac, I kind of like the looks of tk_messageBox better than
>> DialogGen, but that's just a matter of personal opinion.
>> 
>> But I don't have a sense of what the difference between the two is on
>> Windows and would always like to have a better looking interface. It might
>> be nice to have error reporting have a consistent look across the entire
>> program--either DialogGen or tk_messageBox. And if there is a general
>> preference to the custom function (DialogGen) I don't feel that strongly
>> about it either way--as long as someone else wants to change over the 130+
>> of tk_messageBox dialogs I just installed ;-).
>> 
>> On a different error trap note...anyone have a feel for whether it's
>> worthwhile to use this check for all error traps?
>> 
>> if {[lindex $::errorCode 0] eq "CHILDSTATUS"} {
>> 
>> if it returns better information, it might be worth the effort.
>> 
>> Cheers
>> Michael
>> 
> 
> 

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
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