Linguistics 408/508
Fall 2003
Hammond

Handout 21

Overview

Practice

  1. Build a Tk-based program with three buttons and a label. The label should report which button has been pressed.
  2. Build a Tk-based program with three buttons and a scrolled Text element. The latter should keep a running tally of what button was pressed and when. (You'll need to use the insert() method to add text at the "end"...)
  3. Build a Tk-based program with several buttons, an Entry, and a scrolled Text. The user should be able to enter the name of a file in the Entry, press a button and have the contents of that file displayed in the Text widget. Make sure there are buttons to clear the text and to quit the program.