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
]
评论列表
文章目录