2
# the next line restarts using wish \
3
exec "$GRASS_WISH" "$0" "$@"
6
# Simply ask if the selected area is ok or not and save the
7
# answer in the filename given by the environment variable "env(name)"
9
wm title . "Select this area"
12
label .label -text "\nIs this area ok?"
16
set val "$env(input_vector)_$env(CAT)"
17
button .buttons.ok -text "Ok" -command {
22
label .name.e.n -text "Enter area name\n(raster map mask name)"
23
entry .name.e.val -textvariable val -width 20
24
grid .name.e.n .name.e.val
27
button .name.buttons.b -text "Ok" -command {
28
if {$val != ""} then {
29
exec echo 1 $val > $env(name)
35
button .buttons.no -text "No" -command {
36
exec echo 0 > $env(name)
39
# what to call it: "stop"? "abort"? "quit"?
40
button .buttons.abort -text "Done" -command {
41
exec echo -1 > $env(name)
45
grid .buttons.ok .buttons.no .buttons.abort -padx 2 -pady 2