1 #Definicion del comando Agregar 2 def showAddFile(self, widget): 3 self.filterbox.set_name("Media Files") 4 for name, pattern in filepattern: 5 self.filterbox.add_pattern(pattern) 6 7 self.addfile.add_filter(self.filterbox) 8 9 respt = self.addfile.run() 10 self.addfile.remove_filter(self.filterbox) 11 self.addfile.hide() 12 if respt == -5: 13 fileselected = self.addfile.get_filenames() 14 print fileselected