{ (define LIBNAME "Guess GUI") (include "head.tinc") }

The teachpack guess-gui.ss implements three functions:

  • {(idx control)} : N -> symbol
    to read out the i-th guess choice, starting with 0
  • {(idx view)} : (union string symbol) -> true
    to display its argument in the message panel
  • modelT = (button% event% -> true)
    {(idx connect)} : modelT -> true
    to connect a controller with the Check button
    displays frame
  • Example:

    (connect (lambda (e b)
               (begin
                 (printf "0th digit: ~s~n" (control 0))
                 (view (control 0)))))
    
    {(include "foot.tinc")}