next up previous
Next: Hello World in Up: Tk: A User Previous: Tk: A User

Widgets and User Interaction

Widgets are arranged in a hierarchy, using pathnames separated by periods:
    .
        .menubar
            .menubar.file
                .menubar.file.load
                .menubar.file.print
                .menubar.file.quit
            .menubar.help
                .menubar.help.about
                .menubar.help.tutorial
        .frame
            .frame.canvas
            .frame.scrollbar

Geometry managers arrange widgets on the display.
User interaction is based on callbacks.
A wish is a standard windowing shell which accepts Tcl/Tk scripts.



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

cs488@cgl.uwaterloo.ca