Made it possible not to give a filename
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
|
||||
(define (rkdt filename
|
||||
(define (rkdt [filename #f]
|
||||
#:wait? [wait? #f]
|
||||
#:width [width 900]
|
||||
#:height [height 650]
|
||||
@@ -109,7 +109,9 @@
|
||||
(closed (make-semaphore 0))
|
||||
(frame (new (make-editor-frame% closed
|
||||
(λ (num x y w h) (store-cfg num x y w h)))
|
||||
[filename (format "~a" filename)]
|
||||
[filename (if (eq? filename #f)
|
||||
#f
|
||||
(format "~a" filename))]
|
||||
[editor% racket:text%]
|
||||
[width 900]
|
||||
[height 650]
|
||||
|
||||
Reference in New Issue
Block a user