#NEWLINE# def initScrollText( self , frm , txt , contents ) : #NEWLINE# #INDENT# scl = tk . Scrollbar ( scl ) #NEWLINE# scl . config ( command = txt . yview ) #NEWLINE# scl . pack ( side = 'right' , fill = 'y' ) #NEWLINE# txt . pack ( side = 'left' , expand = True , fill = 'x' ) #NEWLINE# txt . config ( yscrollcommand = scl . set ) #NEWLINE# txt . insert ( '1.0' , contents ) #NEWLINE# frm . pack ( fill = 'x' ) #NEWLINE# tk . Frame ( height = 2 , bd = 1 , relief = 'ridge' ) . pack ( fill = 'x' )