next up previous
Next: An Extended Tk Up: Tk: A User Previous: Widgets and User

Hello World in Tk

    #!/software/tk/bin/wish -f
    wm title . "hi!"
    button .hello -text "Hello, World!" -command exit
    pack .hello
This shell script, when run, presents the interface



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

cs488@cgl.uwaterloo.ca