The constructor initializes the parent Frame, stores its argument, sets up a control variable for
the Entry, and then creates all the
widgets. See Section 13.2, “NamePicker.__createWidgets(): Create
all widgets”.
# - - - N a m e P i c k e r . _ _ i n i t _ _
def __init__ ( self, parent, callback=None ):
"""Constructor for the NamePicker compound widget.
"""
#-- 1 --
# [ self := self as a Frame ]
Frame.__init__ ( self, parent )
#-- 2 --
self.__parent = parent
self.__callback = None
#-- 3 --
# [ self := self with all contained widgets created and
# gridded ]
self.__createWidgets()
#-- 4 --
self.__callback = callback