This discussion relies on the code presented in "Say Hello - Part One". If you have not read the beginning of this series, you can begin with "A Word on Tkinter and GUI Toolkits".
The first line of the definition creates an object greet, an instance of the Tk class. We then use Tk's geometry method to declare the precise geometry (110x75 pixels) and location of the frame, using the upper left of the screen for orientation (i.e., 0,0).
In the next two lines, we define the label and the button text for the new window. The label is an instance of the Label class from Tkinter. The first argument is the object to which the label pertains. The second is the attribute, our greeting.
The button similarly is defined according to the prototype Button class of Tkinter. It is then associated with the greet object. The text on the button will simply read "OK". When the button is pressed or clicked, greet's quit method will be called and the frame scrapped.
Both the label and button need to be manifest on the window using the pack method again to do this. Finally, we call the mainloop of greet and the whole package goes into effect.
While that develops the class Greeter, we still have to call it. Next, we need to define the main function, the brains of our program.
