#NEWLINE# def error( self , message , title = 'Error' ) : #NEWLINE# #INDENT# dialog = mywid . MessageDialog ( title , message ) #NEWLINE# urwid . connect_signal ( dialog , 'close' , ( lambda button : self . backScreen ( ) ) ) #NEWLINE# ( cols , rows ) = self . loop . screen . get_cols_rows ( ) #NEWLINE# cols = int ( ( cols * 0.5 ) ) #NEWLINE# lines = textwrap . wrap ( message , cols ) #NEWLINE# min_height = max ( 4 , ( len ( lines ) + 4 ) ) #NEWLINE# self . popup ( dialog , min_height = min_height ) #NEWLINE# return None