Пример #1
0
 def get_file(self, path, ext, callback):
     if self.showing == None:
         prompt = "Select a master file to load."
         picker = Picker(
             get_options=lambda: Util.get_file_list(path, ext),
             return_callback=lambda e: self.__get_file(e, callback),
             return_view=self.content,
             master=self,
             prompt=prompt)
         self.showing = picker
         picker.show()
Пример #2
0
 def select_file(self, col):
     self.show()
     key = 'filters'
     prompt = 'Please select a that contains the desired filters.'
     Split(key,
           column=col,
           get_options=lambda: Util.get_file_list(Util.FILTER_ROOT, Util.
                                                  FILTER_EXT),
           return_callback=self.add_file_callback,
           return_view=self.content,
           master=self.parent,
           prompt=prompt).show()