#NEWLINE# def main( options , args ) : #NEWLINE# #INDENT# logger = logging . getLogger ( 'example1' ) #NEWLINE# logger . setLevel ( logging . INFO ) #NEWLINE# fmt = logging . Formatter ( STD_FORMAT ) #NEWLINE# stderrHdlr = logging . StreamHandler ( ) #NEWLINE# stderrHdlr . setFormatter ( options ) #NEWLINE# logger . addHandler ( stderrHdlr ) #NEWLINE# fv = FitsViewer ( logger ) #NEWLINE# root = fv . get_widget ( ) #NEWLINE# root . show_all ( ) #NEWLINE# if ( len ( args ) > 0 ) : #NEWLINE# #INDENT# fv . load_file ( args [ 0 ] ) #NEWLINE# #UNINDENT# gtk . main ( )