Welcome to the TkGofer Home Page. TkGofer is a library for writing graphical user interfaces in the lazy functional language Gofer. The version currently being distributed is Version 2.1. Read more about the current release in the readme file or, in the release notes. A long time ago, TkGofer was mainly supported by Koen Claessen and Ton Vullinghs. We welcome all your comments, feedback and suggestions.
For the current version of the prelude we advice you to use Tcl version 7.6 and Tk version 4.2 or higher.
The current distribution contains the Gofer C-sources, preludes, a lot of examples, and documentation. A precompiled version of TkGofer is also available for Windows 95 and Windows NT. You can find more details in the readme.win file. There is also a special version of TkGofer, which supports Ultra.
main :: IO ()
main = start $
do w <- window [ title "Hello"]
b <- button [ text "Hello World!"
, command quit
] w
pack b
|
|
main :: IO ()
main = start $
do w <- window [ title "Adder" ]
e <- entry [ initValue 0 ] w
b <- button [ text "+"
, command $
do x <- getValue e
setValue e (x+1)
] w
pack (e ^-^ b)
|
|