[Haskell-cafe] Pure functional GUI (was
Hugh Perkins
hughperkins at gmail.com
Thu Aug 9 00:46:45 EDT 2007
On 8/9/07, Marc Weber <marco-oweber at gmx.de> wrote:
>
> -- load up the glade file
> dialogXmlM <- xmlNew "simple.glade"
> let dialogXml = case dialogXmlM of
> (Just dialogXml) -> dialogXml
> Nothing -> error "can't find the glade file \"simple.glade\"
> \
> \in the current directory"
>
> -- get a handle on a couple widgets from the glade file
> window <- xmlGetWidget dialogXml castToWindow "window1"
> button <- xmlGetWidget dialogXml castToButton "button1"
>
Oooo... nice :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070809/be7ac8c9/attachment.htm
More information about the Haskell-Cafe
mailing list