On Tue, Nov 19, 2019 at 9:49 AM pow bam <darrk...@gmail.com> wrote:

> (get-directory [message "Select a folder.."])
>
>
You should just use (get-directory "Select a folder.."). The docs
<https://docs.racket-lang.org/gui/Windowing_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._get-directory%29%29>
says the syntax is

(get-directory
<https://docs.racket-lang.org/gui/Windowing_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._get-directory%29%29>
 [ message
    parent
    directory
    style
    #:dialog-mixin dialog-mixin])   →   (or/c
<https://docs.racket-lang.org/reference/data-structure-contracts.html#%28def._%28%28lib._racket%2Fcontract%2Fbase..rkt%29._or%2Fc%29%29>
 path #f)

Here the "[...]" means that message, parent, etc. are all optional and not
named args. The #:dialog-mixin syntax means that it is a named arg.

-- Hadi

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAK%3D1%3DWpTEEVBQJOZnRq%3DWiJTkPty1_7FqDpvqF7xKbFerejB6Q%40mail.gmail.com.

Reply via email to