#NEWLINE# def onExit( self , event = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if hasattr ( self . exit_callback , '__call__' ) : #NEWLINE# #INDENT# self . exit_callback ( ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# if ( self . panel is not None ) : #NEWLINE# #INDENT# self . panel . win_config . Close ( True ) #NEWLINE# #UNINDENT# if ( self . panel is not None ) : #NEWLINE# #INDENT# self . panel . win_config . Destroy ( ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . Destroy ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass