master
Matthew Butterick 5 years ago
parent 99f78d37d7
commit 830208768b

@ -1,7 +1,6 @@
#lang debug racket/gui #lang debug racket/gui
(require words) (require words)
(define the-fam (define the-fam
(for*/first ([preferred (for*/first ([preferred
'("Triplicate T4" "Menlo" "Consolas" "Andale Mono" "Courier")] '("Triplicate T4" "Menlo" "Consolas" "Andale Mono" "Courier")]
@ -17,7 +16,7 @@
[x 100] [x 100]
[y 100] [y 100]
[alignment '(left top)] [alignment '(left top)]
[spacing 12] [spacing 3]
[border 6])) [border 6]))
@ -77,7 +76,7 @@
(for ([param (list current-min-size current-max-size)] (for ([param (list current-min-size current-max-size)]
[start-size (list (current-min-size) (- (current-max-size) 10))] [start-size (list (current-min-size) (- (current-max-size) 10))]
[end-size (list (+ (current-min-size) 10) (current-max-size))] [end-size (list (+ (current-min-size) 10) (current-max-size))]
[label-str '("min length" "max length")] [label-str '("shortest " "longest  ")]
[selected-item (list 0 10)]) [selected-item (list 0 10)])
(new radio-box% (new radio-box%
[parent window] [parent window]
@ -112,7 +111,7 @@
(define rb-casing (define rb-casing
(new radio-box% (new radio-box%
[parent window] [parent window]
[label #f] [label "casing "]
[font mono-font] [font mono-font]
[horiz-margin 12] [horiz-margin 12]
[style '(horizontal)] [style '(horizontal)]
@ -148,7 +147,7 @@
(let ([button-panel (new horizontal-panel% [parent window] (let ([button-panel (new horizontal-panel% [parent window]
[alignment '(left top)] [alignment '(left top)]
[stretchable-height #false])]) [stretchable-height #false])])
(for ([count (in-list '(50 100 500 1000 all))]) (for ([count (in-list '(50 100 200 400 800 1600))])
(define count-str (format "~a" count)) (define count-str (format "~a" count))
(new button% [parent button-panel] (new button% [parent button-panel]
[label count-str] [label count-str]

Loading…
Cancel
Save