next up previous
Next: Clipping Up: Basic User Interface Previous: Toolkits and Callbacks

Example for Discussion

exec wish "$0" "$@"

button .hello -text "Hello, world" -command {
    puts stdout "Hello, world"; destroy .

pack .hello

  1. Where is the definition of the event?
  2. What constitutes the event?
  3. What process is associated with the event?
  4. Who manages the event loop?

CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab