예제 #1
0
 def on_collection_select(self, event):
     try:
         index = int(self.collection_box.curselection()[0])
         self.current_collection = self.collection_box.get(index)
         self.file_name_box.delete(first=0, last=tk.END)
         collection_id = api.get_cid_from_name(self.current_collection)
         collection_features = api.retrieve('collections', collection_id)
         self.oids = collection_features['oid_list']
         for oid in self.oids:
             file_names = list(api.get_names_from_oid(oid))
             file_name = ', '.join(file_names)
             self.file_name_box.insert(tk.END, file_name)
     except IndexError:
         print "Index Error..."
예제 #2
0
 def on_collection_select(self, event):
     try:
         index = int(self.collection_box.curselection()[0])
         self.current_collection = self.collection_box.get(index)
         self.file_name_box.delete(first=0, last=tk.END)
         collection_id = api.get_cid_from_name(self.current_collection)
         collection_features = api.retrieve('collections', collection_id)
         self.oids = collection_features['oid_list']
         self.label_str.set('Loading: ')
         self.file_count.set(0)
         for oid in self.oids:
             self.after(0, self.display_filenames, oid)
         self.file_count.set('')
         self.label_str.set('')
     except IndexError:
         print "Index Error..."