So I am trying to write a program that uses both the big-bang
(see 2htdp/universe
) function as well as dialogs (see racket/gui/base
). My problem is that I want it so that the program displays both of the windows at the same time, however I am having a hard time figuring that part out, as both functions must be "closed/completed" for code to continue. This is what I have tried, with no luck (due to what was said previously):
#lang racket
(require 2htdp/universe
racket/gui/base)
(define dialog (instantiate dialog% ("Title")))
(define (render data)
...)
(define main
(begin
(big-bang ...
(on-draw render))
(send dialog show #t)))
With this sample [template] code, the big-bang application shows first, and for the dialog to show, you must close the big-bang application. To re-iterate, I want to be able to have both of them show at the same time.
If you would like any more information about the problem, please let me know. Thanks in advance for any help.