Next: Clipping
Up: Basic User Interface
Previous: Toolkits and Callbacks
#!/bin/sh
exec wish "$0" "$@"
button .hello -text "Hello, world" -command {
puts stdout "Hello, world"; destroy .
}
pack .hello
- Where is the definition of the event?
- What constitutes the event?
- What process is associated with the event?
- Who manages the event loop?
CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab
cs488@cgl.uwaterloo.ca