#NEWLINE# def make_canvas( parent , width = 0 , height = 0 , hbar = 1 , vbar = 1 , fill = BOTH , expand = 1 , pack = 1 , class_ = None , name = None , takefocus = None ) : #NEWLINE# #INDENT# 'Subroutine to create a canvas.\n\n    Like make_text_box().\n\n    ' #NEWLINE# ( hbar , vbar , frame ) = make_scrollbars ( parent , hbar , vbar , pack , class_ = class_ , name = name , takefocus = takefocus ) #NEWLINE# widget = Canvas ( frame , scrollregion = ( 0 , 0 , width , height ) , name = 'canvas' ) #NEWLINE# if width : #NEWLINE# #INDENT# widget . config ( width = width ) #NEWLINE# #UNINDENT# if height : #NEWLINE# #INDENT# widget . config ( height = height ) #NEWLINE# #UNINDENT# widget . pack ( expand = expand , fill = fill , side = LEFT ) #NEWLINE# set_scroll_commands ( widget , hbar , vbar ) #NEWLINE# return ( widget , frame )