#!/bin/sh :;exec /usr/local/bin/stk -f "$0" "$@" ;;;; ;;;; STk adaptation of the Tk widget demo. ;;;; ;;;; 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" ,(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