#NEWLINE# def run( self , wx_app = None ) : #NEWLINE# #INDENT# 'Start the application as infinite loop accordingly to need' #NEWLINE# self . __class__ . running = True #NEWLINE# if ( self . config [ 'viewer' ] == 'wx' ) : #NEWLINE# #INDENT# wx_app . MainLoop ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . config [ 'viewer' ] == 'text' ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# while self . __class__ . running : #NEWLINE# #INDENT# sleep ( 1 ) #NEWLINE# #UNINDENT# #UNINDENT# except ( KeyboardInterrupt , SystemExit ) : #NEWLINE# #INDENT# pass