#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# win = StandardWindow ( 'Testing' , 'Elementary File Selector' ) #NEWLINE# win . callback_delete_request_add ( ( lambda o : elm . exit ( ) ) ) #NEWLINE# self . fs = fs = FileSelector ( win , size_hint_weight = EXPAND_BOTH , size_hint_align = FILL_BOTH ) #NEWLINE# fs . setMode ( 'Open' ) #NEWLINE# fs . show ( ) #NEWLINE# fs . callback_activated_add ( self . showFile ) #NEWLINE# fs . callback_cancel_add ( ( lambda o : elm . exit ( ) ) ) #NEWLINE# win . resize_object_add ( fs ) #NEWLINE# win . resize ( 600 , 400 ) #NEWLINE# win . show ( )