#!/bin/sh :;exec /usr/local/bin/stk -f "$0" "$@" ;;;; ;;;; STk adaptation of the Tk widget demo. ;;;; ;;;; Copyright © 1997-1999 Erick Gallesio - I3S-CNRS/ESSI ;;;; ;;;; Permission to use, copy, modify, distribute,and license this ;;;; software and its documentation for any purpose is hereby granted, ;;;; provided that existing copyright notices are retained in all ;;;; copies and that this notice is included verbatim in any ;;;; distributions. No written agreement, license, or royalty fee is ;;;; required for any of the authorized uses. ;;;; 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. ;;;; ;;;; Author: Erick Gallesio [eg@unice.fr] ;;;; Creation date: 1997 ;;;; Last file update: 3-Sep-1999 19:18 (eg) ;;;; ;;;; This script demonstrates the various widgets provided by Tk, along ;;;; with many of the features of the Tk toolkit. This file only ;;;; contains code to generate the main window for the application, ;;;; which invokes individual demonstrations. The code for the actual ;;;; demonstrations is contained in separate ".stklos" files in this ;;;; directory, which are sourced by this script as needed. (require "Tk-classes") (define demo-font "-*-Helvetica-Medium-R-Normal--*-140-*-*-*-*-*-*") (define *STk-images* (string-append *STk-library* "/Images/")) (set! *load-path* `("." "./Widget" "../Demos/Widget" ,(string-append *STk-library* "/Demos") ,@*load-path*)) ;; ;; make-demo-toplevel ;; (define (make-demo-toplevel name title text . variables) (let* ((t (make :title title :geometry "+300+300")) (f (make :parent t)) (b (make :parent t))) ;; Pack the demo text (when text (pack (make