#NEWLINE# def browse( self , current_dir = None , prelist = None , postlist = None ) : #NEWLINE# #INDENT# if ( current_dir is None ) : #NEWLINE# #INDENT# current_dir = self . initial_dir #NEWLINE# #UNINDENT# if prelist : #NEWLINE# #INDENT# self . prelist = prelist #NEWLINE# #UNINDENT# if postlist : #NEWLINE# #INDENT# self . postlist = current_dir #NEWLINE# #UNINDENT# self . dir_list = self . get_list ( current_dir ) #NEWLINE# selected = 0 #NEWLINE# if ( len ( self . dir_list ) > 1 ) : #NEWLINE# #INDENT# selected = 1 #NEWLINE# #UNINDENT# self . window . show_quick_panel ( self . dir_list , self . on_select , 0 , selected )