filelist.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:stig 作者: rndusr 项目源码 文件源码
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,)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号