preview.py 文件源码

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

项目:yuuno 作者: Irrational-Encoding-Wizardry 项目源码 文件源码
def __init__(self, clip=None, *args, **kwargs):
        super(Preview, self).__init__(*args, **kwargs, clip=clip)
        self.links = [directional_link((self._ui_intslider, 'value'), (self, 'frame'))]

        prev = Button(icon="fa-step-backward", layout=Layout(width="50px"))
        prev.on_click(lambda s: self.step(-1))
        next = Button(icon="fa-step-forward", layout=Layout(width="50px"))
        next.on_click(lambda s: self.step(1))

        self.children = [
            HBox([prev, next, self._ui_intslider]),
            self._current
        ]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号