Annotation of capa/capa51/GUITools/menu.tcl, revision 1.2
1.1 albertel 1: #!/usr/local/bin/wish8.0
1.2 ! albertel 2: # simple CAPA menu
! 3: # Copyright (C) 1992-2000 Michigan State University
! 4: #
! 5: # The CAPA system is free software; you can redistribute it and/or
! 6: # modify it under the terms of the GNU Library General Public License as
! 7: # published by the Free Software Foundation; either version 2 of the
! 8: # License, or (at your option) any later version.
! 9: #
! 10: # The CAPA system is distributed in the hope that it will be useful,
! 11: # but WITHOUT ANY WARRANTY; without even the implied warranty of
! 12: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 13: # Library General Public License for more details.
! 14: #
! 15: # You should have received a copy of the GNU Library General Public
! 16: # License along with the CAPA system; see the file COPYING. If not,
! 17: # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
! 18: # Boston, MA 02111-1307, USA.
! 19: #
! 20: # As a special exception, you have permission to link this program
! 21: # with the TtH/TtM library and distribute executables, as long as you
! 22: # follow the requirements of the GNU GPL in regard to all of the
! 23: # software in the executable aside from TtH/TtM.
! 24:
1.1 albertel 25: set exelocation "/usr/local/bin"
26: set imglocation "/usr/local/lib/CAPA"
27:
28: set env(PATH) "/usr/local/teTeX/bin:$env(PATH):/usr/local/bin/X11:/usr/local/bin"
29: foreach program {quizzer grader manager} {
30: image create photo $program.bm -file $imglocation/$program.ppm
31: button .$program -image $program.bm -command "exec $exelocation/$program &"
32: pack .$program
33: }
34: wm title . "Menu"
35: update idletasks
36: wm geometry . -0+0
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>