[Haskell-cafe] wxHaskell: getting a checkbox state

Joel Reymont joelr1 at gmail.com
Wed Sep 14 12:24:28 EDT 2005


On Sep 14, 2005, at 5:54 PM, Arthur Baars wrote:

> This means you can "get" and "set" the "checked" property for  
> checkboxes.
> for example:
>  c <- get cbEdit checked
>  set cbEdit [checked := not c ]

Any particular reason to enclose the arguments in square brackets  
apart from cool-looking syntax?

Do I correctly understand that 2 arguments are being passed to set,  
the second being a list of more arguments?

     Thanks, Joel




More information about the Haskell-Cafe mailing list