#NEWLINE# def drawImage( self , mode ) : #NEWLINE# #INDENT# canvas = canvas . canvas #NEWLINE# canvas . resize ( 16 , 16 ) #NEWLINE# canvas . saveContext ( ) #NEWLINE# if ( mode == 'white' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# canvas . setLineWidth ( 1 ) #NEWLINE# canvas . setStrokeStyle ( Color . Color ( '#aaa' ) ) #NEWLINE# canvas . strokeRect ( 4 , 4 , 8 , 8 ) #NEWLINE# canvas . setStrokeStyle ( Color . Color ( '#222' ) ) #NEWLINE# canvas . setLineWidth ( 1 ) #NEWLINE# canvas . moveTo ( 5 , 8 ) #NEWLINE# canvas . lineTo ( 11 , 8 ) #NEWLINE# if ( mode == 'closed' ) : #NEWLINE# #INDENT# canvas . moveTo ( 8 , 5 ) #NEWLINE# canvas . lineTo ( 8 , 11 ) #NEWLINE# #UNINDENT# canvas . stroke ( ) #NEWLINE# canvas . restoreContext ( )