rollingshutter.py 文件源码

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

项目:rollingshutterpy 作者: alexd3rsan 项目源码 文件源码
def select_input(self) -> None:
        file = askopenfile(title='Please select one (any) frame from your set of images.',
                           filetypes=[('Image Files', ['.jpeg', '.jpg', '.png', '.gif',
                                                       '.tiff', '.tif', '.bmp'])])
        if not file:
            return None

        dir_ = os.path.dirname(file.name)
        filetype = os.path.splitext(file.name)

        self.files = [os.path.abspath(os.path.join(dir_, f))
                      for f in os.listdir(dir_)
                       if f.endswith(filetype)]
        self.files.sort()

        self.btn_output['state'] = 'normal'
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号