-
Notifications
You must be signed in to change notification settings - Fork 1
/
byoe-feedback.rkt
43 lines (34 loc) · 1.29 KB
/
byoe-feedback.rkt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#lang racket
(provide win-feedback%)
(require racket/gui)
(require "mvc.rkt")
; ;; ;; ;; ;;;;;;; ;; ; ;; ;;
; ;; ; ;; ;;;;;;; ; ;;; ; ;;;;;
; ;; ;; ;; ;; ;; ;;; ;; ;; ;
; ; ;; ;; ;; ;; ;;; ;; ;;
; ;; ; ;; ;;;;;; ; ;; ;; ; ;;;
; ;; ;; ;; ;;;;;; ;; ;; ;; ;; ;;;
; ;; ;; ;; ;; ;; ;; ;; ;; ;;
; ;; ; ;; ;; ;;;; ;;; ;;
; ;;; ;; ;; ;;; ;;; ; ;;
; ;;; ;; ;; ;;; ;;; ;; ;;;
; ;; ;; ;;;;;;; ;; ;; ;;;;
(define win-feedback%
(class view%
(init-field model)
(define f (new frame%
[label "Messages"]
[width 300]
[height 400]))
(define editor-canvas (new editor-canvas%
(parent f)
(label "Editor Canvas")))
(define text (new text%))
(define/override (update)
(when (send model get-compilation-result)
(send f show true)
(send text insert (send model get-compilation-result))))
; (send text insert (send model get-compilation-result))
(send editor-canvas set-editor text)
(super-new)
))