procedure
procedure
( gui-dynamic-require sym)→any
sym:symbol?
The gui-dynamic-require function is intended primarily for use under a (gui-available? ) conditional. It can also be used as a shorthand for dynamic-require with 'racket/gui/base, but only after ensuring that the bindings are available. One way to make racket/gui/base bindings available, so that (gui-available? ) returns true, is through dynamic-require :
(dynamic-require 'racket/gui/base#f)
Unlike require , using dynamic-require delays the instantiation of racket/gui/base until the run-time call of dynamic-require . With racket/gui/base so declared, gui-dynamic-require can be used to access bindings:
[label"Frame"]))