Next: The final product
Up: Adding a Graphical User
Previous: Running the GTK main
The source code for the Threading example can be found here.
- Add a pause button to the controller. You will need to create another
threading event to signal to the subjects to pause.
- The start button also serves as a stop button. Modify the
code to change the label on the start button to ``Stop'' whenever the start
button is pressed, but changed back to ``Start'' whenever the stop button is
pressed.
- You can't pause a simulation if it isn't running. Modify your code
to desensitise the pause button when the simulation is stopped.
James Roper
2004-02-12