I have been playing with the Ruby library \"shoes\". Basically you can write a GUI application in the following way:
Shoes.app do t = para \"Not clicked!\" b
The only attempt to do this that I know of is Hans Nowak's Wax (which is unfortunately dead).