Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Window-creation-X11/Racket/window-creation-x11.rkt
Normal file
13
Task/Window-creation-X11/Racket/window-creation-x11.rkt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#lang racket/gui
|
||||
|
||||
(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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue