#NEWLINE# def __init__( self , **attr ) : #NEWLINE# #INDENT# Canvas . __init__ ( self , ** attr ) #NEWLINE# if attr . has_key ( 'textHeight' ) : #NEWLINE# #INDENT# self . textHeight = attr [ 'textHeight' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . textHeight = 10 #NEWLINE# #UNINDENT# self . side1 = 0 #NEWLINE# self . side2 = 0 #NEWLINE# self . height = 0.0 #NEWLINE# self . lineWidth = ( attr . width - 30 )