def make_form_entry(parent, label, borderwidth=None):
 frame = Frame(parent)
 frame.pack(fill=X)
 label = Label(frame, text=label)
 label.pack(side=LEFT)
 if (borderwidth is None):
  entry = Entry(frame, relief=SUNKEN)
 else:
  entry = Entry(frame, relief=SUNKEN, borderwidth=borderwidth)
 entry.pack(side=LEFT, fill=X, expand=1)
 return (entry, frame)

def make_form_entry ( parent , label , borderwidth = None ) : frame = Frame ( parent ) frame . pack ( fill = X ) label = Label ( frame , text = label ) label . pack ( side = LEFT ) if ( borderwidth is None ) : entry = Entry ( frame , relief = SUNKEN ) else : entry = Entry ( frame , relief = SUNKEN , borderwidth = borderwidth ) entry . pack ( side = LEFT , fill = X , expand = 1 ) return ( entry , frame )
subroutine to create a form entry .