def make_text_box(parent, width=0, height=0, hbar=0, vbar=1, fill=BOTH, expand=1, wrap=WORD, pack=1, class_=None, name=None, takefocus=None):
 (hbar, vbar, frame) = make_scrollbars(parent, hbar, vbar, pack, class_=class_, name=name, takefocus=takefocus)
 widget = Text(frame, wrap=wrap, name='text')
 if width:
  widget.config(width=width)
 if height:
  widget.config(height=height)
 widget.pack(expand=expand, fill=fill, side=LEFT)
 set_scroll_commands(widget, hbar, vbar)
 return (widget, frame)

def make_text_box ( parent , width = 0 , height = 0 , hbar = 0 , vbar = 1 , fill = BOTH , expand = 1 , wrap = WORD , pack = 1 , class_ = None , name = None , takefocus = None ) : ( hbar , vbar , frame ) = make_scrollbars ( parent , hbar , vbar , pack , class_ = class_ , name = name , takefocus = takefocus ) widget = Text ( frame , wrap = wrap , name = 'text' ) if width : widget . config ( width = width ) if height : widget . config ( height = height ) widget . pack ( expand = expand , fill = fill , side = LEFT ) set_scroll_commands ( widget , hbar , vbar ) return ( widget , frame )
subroutine to create a text box .