aboutsummaryrefslogtreecommitdiff
path: root/feasibility_analysis/gui/windows2.rkt
blob: 3f60c80be91194b4e8d4710da9ef37cdd67edab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#lang racket

(require racket/gui/base)

(define frame (new frame%
                   [label "Example"]
                   [width 300]
                   [height 300]))
(new canvas% [parent frame]
             [paint-callback
               (lambda (canvas dc)
                 (send dc set-scale 3 3)
                 (send dc set-text-foreground "blue")
                 (send dc draw-text "Don't Panic!" 0 0))])
(send frame show #t)