Creating widgets is easy.
Take the name of the widget as given in the
Tk documentation and add a
to the front of it. For instance,
the widgets Label, Button, and Entry become the classes
. You create an instance of a widget
, just as you would any other object. If you don't
specify a parent for a given widget, it will default to the root-level
frame. We usually want to specify the parent of a given widget, along
with many other options---color, size, and so on. We also need to be
able to get information back from our widgets while our program is
running by setting up callbacks and sharing data.