Tk Development Demo

Introduction

This is a demonstration of one way to develop a TK program. It is an incremental approach.

This will be simple drawing program demonstrating a drawing area. With each step you do a few line of code, then test and debug it. It this way you accumulate more and more detail and functionality.

step 1 - write simple requirements

For example:

Note: this is not a set of formal requirements. This is for your use. It is to prevent requirements creep.

Step 2 - design decisions

Note: this is not a formal design. This is for your use. It is to prevent design creep.

Steps 3 - preliminary layout

On paper, draw a layout for the program. For example:

image missing image missing

Note: this is not a formal layout. This is for your use. It is to prevent layout changes during development.

Steps 4 - incremental code and testing

Increment 1
Increment 2
Increment 3
Increment 4
Increment 5
Continue adding code and testing

Step 5 - cleanup and comment code, and document program