#NEWLINE# def on_close( self , modal , button ) : #NEWLINE# #INDENT# if ( self . on_done is not None ) : #NEWLINE# #INDENT# self . on_done ( ( modal . select . value if ( button == 'OK' ) else None ) )