square_query 699 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. # This program is free software under the GPL (>=v2)
  3. # Read the COPYING file that comes with GRASS for details.
  4. # the next line restarts using wish \
  5. exec $GRASS_WISH "$0" "$@"
  6. #Simply ask if the selected area is ok or not and save the answer in the
  7. #environment variable env(name)
  8. global env
  9. wm title . "Select this area"
  10. wm minsize . 250 100
  11. label .label -text "Is this area ok?"
  12. pack .label
  13. frame .buttons
  14. pack .buttons
  15. set val ""
  16. button .buttons.ok -text "Ok" -command {
  17. exec echo 1 > $env(name).var
  18. destroy .
  19. }
  20. button .buttons.no -text "No" -command {
  21. exec echo 0 > $env(name).var
  22. destroy .
  23. }
  24. grid .buttons.ok .buttons.no