next up previous contents
Next: Binding the buttons Up: The buttons function Previous: The buttons function

Creating an array of buttons



This code creates all the Buttons and paints a little star inside so the playfield looks as shown in Fig. 11, using standard list comprehension and map for monads. But there is more to happen in the buttons function!



Christoph Lueth
Wed May 29 13:20:38 MEST 2002