code: def setFilenames( self, filenames ):
          
          mapped = []
          for filename in filenames:
              filename = nativestring(filename)
              if ( not filename ):
                  continue
              
              mapped.append(filename)
              if ( len(mapped) == self.maximumLength() ):
                  break
          
          self._filenames = mapped
          self.refresh()
docs: Sets the list of filenames that will be used for this menu to the \
          inputed list.
          
          :param      filenames | [<str>, ..]