Re: [racket-users] Using get-file in racket/gui ...

2021-06-10 Thread Sorawee Porncharoenwase
The Racket Reference has a section on the notation used in documentations:
https://docs.racket-lang.org/reference/notation.html

But yes, what you said is correct: you are forced to specify every prior
optional positional argument. This is why I think optional positional
arguments are bad in general. Optional keyword arguments are much better.

On Thu, Jun 10, 2021 at 9:03 AM Don Green 
wrote:

> Where is the documentation that describes how to interpret the racket
> syntax?
> For example:
> (get-file  (message parent directory ...)) ;where the arg list of options
> are optional but if included are positional meaning that to specify an
> argument such as 'directory' means that the previous 2 args must also be
> specified.
>
> On Thursday, June 10, 2021 at 7:53:53 AM UTC-6 Plane wrote:
>
>> Of course, I meant the third, not fourth. Oops!
>>
>> On Thu, 10 Jun 2021, Crystal Jacobs wrote:
>>
>> > Looking at the docs:
>> >
>> >
>> https://docs.racket-lang.org/gui/Windowing_Functions.html?q=get-file#%28def._%28%28lib._mred%2Fmain..rkt%29._get-file%29%29
>> >
>> > It seems like the second argument is the message shown in the title of
>> the
>> > pop-up window. You can include a path as the fourth argument:
>> >
>> > (get-file #f f "/home/don/projects")
>> >
>> > -Crystal
>>
> --
> 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/534bb7cb-b646-4cb5-ae7c-6d8c7d476ed2n%40googlegroups.com
> 
> .
>

-- 
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/CADcueguEDX-a81MRjBkzPAy0JjLeztxhTKFarfrs6ME8s%3DAeVA%40mail.gmail.com.


Re: [racket-users] Using get-file in racket/gui ...

2021-06-10 Thread Don Green
Where is the documentation that describes how to interpret the racket 
syntax?
For example:
(get-file  (message parent directory ...)) ;where the arg list of options 
are optional but if included are positional meaning that to specify an 
argument such as 'directory' means that the previous 2 args must also be 
specified.

On Thursday, June 10, 2021 at 7:53:53 AM UTC-6 Plane wrote:

> Of course, I meant the third, not fourth. Oops!
>
> On Thu, 10 Jun 2021, Crystal Jacobs wrote:
>
> > Looking at the docs:
> >
> > 
> https://docs.racket-lang.org/gui/Windowing_Functions.html?q=get-file#%28def._%28%28lib._mred%2Fmain..rkt%29._get-file%29%29
> >
> > It seems like the second argument is the message shown in the title of 
> the 
> > pop-up window. You can include a path as the fourth argument:
> >
> > (get-file #f f "/home/don/projects")
> >
> > -Crystal
>

-- 
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/534bb7cb-b646-4cb5-ae7c-6d8c7d476ed2n%40googlegroups.com.


Re: [racket-users] Using get-file in racket/gui ...

2021-06-10 Thread Crystal Jacobs

Of course, I meant the third, not fourth.  Oops!

On Thu, 10 Jun 2021, Crystal Jacobs wrote:


Looking at the docs:

https://docs.racket-lang.org/gui/Windowing_Functions.html?q=get-file#%28def._%28%28lib._mred%2Fmain..rkt%29._get-file%29%29

It seems like the second argument is the message shown in the title of the 
pop-up window.  You can include a path as the fourth argument:


(get-file #f f "/home/don/projects")

-Crystal


--
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/alpine.NEB.2.23.451.2106100653260.2097%40panix3.panix.com.


Re: [racket-users] Using get-file in racket/gui ...

2021-06-10 Thread Crystal Jacobs

Looking at the docs:

https://docs.racket-lang.org/gui/Windowing_Functions.html?q=get-file#%28def._%28%28lib._mred%2Fmain..rkt%29._get-file%29%29

It seems like the second argument is the message shown in the title of the 
pop-up window.  You can include a path as the fourth argument:


(get-file #f f "/home/don/projects")

-Crystal

On Thu, 10 Jun 2021, Don Green wrote:


I want the file manipulation popup in racket/gui to display a specified dir, 
not the current directory.
Is that possible?
(get-file #f f) ;displays the popup showing the current directory in frame f.

I expected the following to display the popup showing the specified directory 
but it does not:
(get-file (string->path "/home/don/projects") f)

Any suggestions?
Don

--
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/c1fdeeb1-e2c1-4ff1-8353-2d6e61399a61n%40googlegroups.com.




--
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/alpine.NEB.2.23.451.2106100649370.2097%40panix3.panix.com.


[racket-users] Using get-file in racket/gui ...

2021-06-10 Thread Don Green
I want the file manipulation popup in racket/gui to display a specified 
dir, not the current directory.
Is that possible?
(get-file #f f) ;displays the popup showing the current directory in frame 
f.

I expected the following to display the popup showing the specified 
directory but it does not:
(get-file (string->path "/home/don/projects") f)

Any suggestions?
Don

-- 
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/c1fdeeb1-e2c1-4ff1-8353-2d6e61399a61n%40googlegroups.com.