#!/bin/sh :;exec /usr/local/bin/stk -f "$0" "$@" ;;;; ;;;; f i l e b o x . s t k l o s -- A demo of the class ;;;; ;;;; Copyright © 1993-1998 Erick Gallesio - I3S-CNRS/ESSI ;;;; ;;;; Permission to use, copy, and/or distribute this software and its ;;;; documentation for any purpose and without fee is hereby granted, provided ;;;; that both the above copyright notice and this permission notice appear in ;;;; all copies and derived works. Fees for distribution or use of this ;;;; software or derived works may only be charged with express written ;;;; permission of the copyright holder. ;;;; This software is provided ``as is'' without express or implied warranty. ;;;; ;;;; This software is a derivative work of other copyrighted softwares; the ;;;; copyright notices of these softwares are placed in the file COPYRIGHTS ;;;; ;;;; $Id: filebox.stklos 1.2 Mon, 16 Feb 1998 07:28:39 +0000 eg $ ;;;; ;;;; Author: Erick Gallesio [eg@kaolin.unice.fr] ;;;; Creation date: 12-Jun-1994 11:24 ;;;; Last file update: 12-Feb-1998 11:27 (require "Tk-classes") ;; Just create a filebox and return the selected value (let ((result (Tk:get-file))) (apply format #t (if result (list "You have selected the file ~S\n" result) (list "CANCEL. No file selected\n"))) (exit 0))