def focused_file_ids(self):
"""File IDs of the focused files in a tuple"""
focused = self.focused_widget
if focused is not None:
# The focused widget in the list can be a file or a directory. If
# it's a directory, the 'file_id' property returns the IDs of all
# the contained files recursively.
fid = focused.file_id
return tuple(fid) if isinstance(fid, (abc.Sequence, abc.Set)) else (fid,)
评论列表
文章目录