'Rename files'

@Slot()
def rename(self, fnames=None):

    if (fnames is None):
        fnames = self.get_selected_filenames()
    if (not isinstance(fnames, (tuple, list))):
        fnames = [fnames]
    for fname in fnames:
        self.rename_file(fname)
