;;; radio-selector.stk - Widget containing set of radio buttons. ;;; Version 1 ;;; ;;; Copyright (c) 1995 Harvey J. Stein (hjstein@math.huji.ac.il) ;;; This code is freely usable and distributable as long as this ;;; heading remains. ;;; ;;; Usage (example): ;;; (make ;;; :title "Font Type" ;;; :values '(small med large) ;;; :names '("Small" "Medium" "Large") ;;; :variable 'font-type-var ;;; :command (lambda () (restructure-fonts-to font-type-var)) ;;; :vertical #t) ;;; (require "Tk-classes") (define-class () ((title :init-keyword :title :accessor title-of) (values :init-keyword :values :accessor values-of) (names :init-keyword :names :accessor names-of) (variable :init-keyword :variable :accessor variable-of) (command :init-keyword :command :accessor command-of :initform '()) (label-widget :accessor label-widget-of) (radio-buttons :accessor radio-buttons-of :initform ()) (vertical :init-keyword :vertical :initform #f))) (define-method initialize ((self ) initargs) (next-method) (set! (label-widget-of self) (make