#NEWLINE# def __exit__( self , exc_type , exc_val , exc_tb ) : #NEWLINE# #INDENT# self . parent . ready ( ) #NEWLINE# if ( b == iu . IvyError ) : #NEWLINE# #INDENT# dlg = Toplevel ( self . parent . frame ) #NEWLINE# Label ( dlg , text = repr ( exc_val ) ) . pack ( side = TOP ) #NEWLINE# b = Button ( dlg , text = 'OK' , command = dlg . destroy ) #NEWLINE# b . pack ( padx = 5 , side = TOP ) #NEWLINE# self . parent . tk . wait_window ( dlg ) #NEWLINE# return True #NEWLINE# #UNINDENT# return False